﻿<?xml version="1.0" encoding="utf-8"?>
<views>
  <mapping-views hash="41b8308ce65d80f65dabdc3147571cf7b735dc55afad43a01e87cc394f79a802" conceptual-container="DataModelEntities" store-container="RoboAccDBModelStoreContainer">
    <view extent="RoboAccDBModelStoreContainer.Audits"><![CDATA[
    SELECT VALUE -- Constructing Audits
        [RoboAccDBModel.Store.Audits](T1.Audits_ID, T1.Audits_Action, T1.Audits_TableName, T1.Audits_Key, T1.Audits_FieldName, T1.Audits_OldValue, T1.Audits_NewValue, T1.Audits_Date, T1.Audits_User)
    FROM (
        SELECT 
            T.ID AS Audits_ID, 
            T.Action AS Audits_Action, 
            T.TableName AS Audits_TableName, 
            T.[Key] AS Audits_Key, 
            T.FieldName AS Audits_FieldName, 
            T.OldValue AS Audits_OldValue, 
            T.NewValue AS Audits_NewValue, 
            T.Date AS Audits_Date, 
            T.User AS Audits_User, 
            True AS _from0
        FROM DataModelEntities.Audits AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Audits"><![CDATA[
    SELECT VALUE -- Constructing Audits
        [RoboAccDBModel.Audit](T1.Audit_ID, T1.Audit_Action, T1.Audit_TableName, T1.Audit_Key, T1.Audit_FieldName, T1.Audit_OldValue, T1.Audit_NewValue, T1.Audit_Date, T1.Audit_User)
    FROM (
        SELECT 
            T.ID AS Audit_ID, 
            T.Action AS Audit_Action, 
            T.TableName AS Audit_TableName, 
            T.[Key] AS Audit_Key, 
            T.FieldName AS Audit_FieldName, 
            T.OldValue AS Audit_OldValue, 
            T.NewValue AS Audit_NewValue, 
            T.Date AS Audit_Date, 
            T.User AS Audit_User, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Audits AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Banks"><![CDATA[
    SELECT VALUE -- Constructing Banks
        [RoboAccDBModel.Store.Banks](T1.Banks_ID, T1.Banks_Name, T1.Banks_BranchName, T1.Banks_Branchcode, T1.Banks_Description, T1.Banks_Address, T1.Banks_Tel, T1.Banks_Fax)
    FROM (
        SELECT 
            T.ID AS Banks_ID, 
            T.Name AS Banks_Name, 
            T.BranchName AS Banks_BranchName, 
            T.Branchcode AS Banks_Branchcode, 
            T.Description AS Banks_Description, 
            T.Address AS Banks_Address, 
            T.Tel AS Banks_Tel, 
            T.Fax AS Banks_Fax, 
            True AS _from0
        FROM DataModelEntities.Banks AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.CapitalAction"><![CDATA[
    SELECT VALUE -- Constructing CapitalAction
        [RoboAccDBModel.Store.CapitalAction](T1.CapitalAction_ID, T1.CapitalAction_Name, T1.CapitalAction_Description)
    FROM (
        SELECT 
            T.ID AS CapitalAction_ID, 
            T.Name AS CapitalAction_Name, 
            T.Description AS CapitalAction_Description, 
            True AS _from0
        FROM DataModelEntities.CapitalActions AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ChequeActs"><![CDATA[
    SELECT VALUE -- Constructing ChequeActs
        [RoboAccDBModel.Store.ChequeActs](T1.ChequeActs_ID, T1.ChequeActs_Name, T1.ChequeActs_Type, T1.ChequeActs_Description)
    FROM (
        SELECT 
            T.ID AS ChequeActs_ID, 
            T.Name AS ChequeActs_Name, 
            T.Type AS ChequeActs_Type, 
            T.Description AS ChequeActs_Description, 
            True AS _from0
        FROM DataModelEntities.ChequeActs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ChequePayActs"><![CDATA[
    SELECT VALUE -- Constructing ChequePayActs
        [RoboAccDBModel.Store.ChequePayActs](T1.ChequePayActs_ID, T1.ChequePayActs_ChequePayRef, T1.ChequePayActs_ChequeActRef, T1.ChequePayActs_Date, T1.ChequePayActs_Description)
    FROM (
        SELECT 
            T.ID AS ChequePayActs_ID, 
            T.ChequePayRef AS ChequePayActs_ChequePayRef, 
            T.ChequeActRef AS ChequePayActs_ChequeActRef, 
            T.Date AS ChequePayActs_Date, 
            T.Description AS ChequePayActs_Description, 
            True AS _from0
        FROM DataModelEntities.ChequePayActs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Coding"><![CDATA[
    SELECT VALUE -- Constructing Coding
        [RoboAccDBModel.Store.Coding](T1.Coding_AccountCode, T1.Coding_Account, T1.Coding_Code, T1.Coding_AccountName, T1.Coding_First, T1.Coding_Bed, T1.Coding_Bes, T1.Coding_Remain, T1.Coding_Level, T1.Coding_Type, T1.Coding_Group, T1.Coding_Kind, T1.Coding_System)
    FROM (
        SELECT 
            T.AccountCode AS Coding_AccountCode, 
            T.Account AS Coding_Account, 
            T.Code AS Coding_Code, 
            T.AccountName AS Coding_AccountName, 
            T.First AS Coding_First, 
            T.Bed AS Coding_Bed, 
            T.Bes AS Coding_Bes, 
            T.Remain AS Coding_Remain, 
            T.Level AS Coding_Level, 
            T.Type AS Coding_Type, 
            T.[Group] AS Coding_Group, 
            T.Kind AS Coding_Kind, 
            T.System AS Coding_System, 
            True AS _from0
        FROM DataModelEntities.Codings AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Costuses"><![CDATA[
    SELECT VALUE -- Constructing Costuses
        [RoboAccDBModel.Store.Costuses](T1.Costuses_ID, T1.Costuses_Amount, T1.Costuses_CostusCount, T1.Costuses_CountPay, T1.Costuses_PeriodType, T1.Costuses_PeriodCount, T1.Costuses_StartDate, T1.Costuses_Description, T1.Costuses_Completed, T1.Costuses_CustomerRef, T1.Costuses_DocID)
    FROM (
        SELECT 
            T.ID AS Costuses_ID, 
            T.Amount AS Costuses_Amount, 
            T.CostusCount AS Costuses_CostusCount, 
            T.CountPay AS Costuses_CountPay, 
            T.PeriodType AS Costuses_PeriodType, 
            T.PeriodCount AS Costuses_PeriodCount, 
            T.StartDate AS Costuses_StartDate, 
            T.Description AS Costuses_Description, 
            T.Completed AS Costuses_Completed, 
            T.CustomerRef AS Costuses_CustomerRef, 
            T.DocID AS Costuses_DocID, 
            True AS _from0
        FROM DataModelEntities.Costuses AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.CostusItems"><![CDATA[
    SELECT VALUE -- Constructing CostusItems
        [RoboAccDBModel.Store.CostusItems](T1.CostusItems_ID, T1.CostusItems_CostusRef, T1.CostusItems_ExpireDate, T1.CostusItems_Amount, T1.CostusItems_Recive, T1.CostusItems_Description, T1.CostusItems_RecDate, T1.CostusItems_AmountRecive, T1.CostusItems_DocID)
    FROM (
        SELECT 
            T.ID AS CostusItems_ID, 
            T.CostusRef AS CostusItems_CostusRef, 
            T.ExpireDate AS CostusItems_ExpireDate, 
            T.Amount AS CostusItems_Amount, 
            T.Recive AS CostusItems_Recive, 
            T.Description AS CostusItems_Description, 
            T.RecDate AS CostusItems_RecDate, 
            T.AmountRecive AS CostusItems_AmountRecive, 
            T.DocID AS CostusItems_DocID, 
            True AS _from0
        FROM DataModelEntities.CostusItems AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Currencies"><![CDATA[
    SELECT VALUE -- Constructing Currencies
        [RoboAccDBModel.Store.Currencies](T1.Currencies_ID, T1.Currencies_Name, T1.Currencies_GolobalName, T1.Currencies_TypeRef, T1.Currencies_Country)
    FROM (
        SELECT 
            T.ID AS Currencies_ID, 
            T.Name AS Currencies_Name, 
            T.GolobalName AS Currencies_GolobalName, 
            T.TypeRef AS Currencies_TypeRef, 
            T.Country AS Currencies_Country, 
            True AS _from0
        FROM DataModelEntities.Currencies AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.CurrencyHistory"><![CDATA[
    SELECT VALUE -- Constructing CurrencyHistory
        [RoboAccDBModel.Store.CurrencyHistory](T1.CurrencyHistory_ID, T1.CurrencyHistory_Date, T1.CurrencyHistory_CurrencyFromRef, T1.CurrencyHistory_CurrencyToRef, T1.CurrencyHistory_CurrencyRatioM, T1.CurrencyHistory_Description, T1.CurrencyHistory_CurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS CurrencyHistory_ID, 
            T.Date AS CurrencyHistory_Date, 
            T.CurrencyFromRef AS CurrencyHistory_CurrencyFromRef, 
            T.CurrencyToRef AS CurrencyHistory_CurrencyToRef, 
            T.CurrencyRatioM AS CurrencyHistory_CurrencyRatioM, 
            T.Description AS CurrencyHistory_Description, 
            T.CurrencyRatioD AS CurrencyHistory_CurrencyRatioD, 
            True AS _from0
        FROM DataModelEntities.CurrencyHistories AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.DetailAccounts"><![CDATA[
    SELECT VALUE -- Constructing DetailAccounts
        [RoboAccDBModel.Store.DetailAccounts](T1.DetailAccounts_ID, T1.DetailAccounts_CodingRef, T1.DetailAccounts_RefTable, T1.DetailAccounts_RefID, T1.DetailAccounts_GroupRef, T1.DetailAccounts_Name, T1.DetailAccounts_First, T1.DetailAccounts_Creditor, T1.DetailAccounts_Debtor, T1.DetailAccounts_Remain, T1.DetailAccounts_CurrencyRef, T1.DetailAccounts_DocID)
    FROM (
        SELECT 
            T.ID AS DetailAccounts_ID, 
            T.CodingRef AS DetailAccounts_CodingRef, 
            CAST(T.RefTable AS [Edm.Byte]) AS DetailAccounts_RefTable, 
            T.RefID AS DetailAccounts_RefID, 
            T.GroupRef AS DetailAccounts_GroupRef, 
            T.Name AS DetailAccounts_Name, 
            T.First AS DetailAccounts_First, 
            T.Creditor AS DetailAccounts_Creditor, 
            T.Debtor AS DetailAccounts_Debtor, 
            T.Remain AS DetailAccounts_Remain, 
            T.CurrencyRef AS DetailAccounts_CurrencyRef, 
            T.DocID AS DetailAccounts_DocID, 
            True AS _from0
        FROM DataModelEntities.DetailAccounts AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.DocHeader"><![CDATA[
    SELECT VALUE -- Constructing DocHeader
        [RoboAccDBModel.Store.DocHeader](T1.DocHeader_ID, T1.DocHeader_RefTable, T1.DocHeader_RefID, T1.DocHeader_Date, T1.DocHeader_Subject, T1.DocHeader_Bed, T1.DocHeader_Bes)
    FROM (
        SELECT 
            T.ID AS DocHeader_ID, 
            CAST(T.RefTable AS [Edm.Byte]) AS DocHeader_RefTable, 
            T.RefID AS DocHeader_RefID, 
            T.Date AS DocHeader_Date, 
            T.Subject AS DocHeader_Subject, 
            T.Bed AS DocHeader_Bed, 
            T.Bes AS DocHeader_Bes, 
            True AS _from0
        FROM DataModelEntities.DocHeaders AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.GroupPermission"><![CDATA[
    SELECT VALUE -- Constructing GroupPermission
        [RoboAccDBModel.Store.GroupPermission](T1.GroupPermission_ID, T1.GroupPermission_GroupRef, T1.GroupPermission_PartRef, T1.GroupPermission_View, T1.GroupPermission_Edit, T1.GroupPermission_Del, T1.GroupPermission_New, T1.GroupPermission_Archive, T1.GroupPermission_ViewOwner, T1.GroupPermission_EditOwner, T1.GroupPermission_DelOwner, T1.GroupPermission_ArchiveOwner)
    FROM (
        SELECT 
            T.ID AS GroupPermission_ID, 
            T.GroupRef AS GroupPermission_GroupRef, 
            T.PartRef AS GroupPermission_PartRef, 
            T.View AS GroupPermission_View, 
            T.Edit AS GroupPermission_Edit, 
            T.Del AS GroupPermission_Del, 
            T.New AS GroupPermission_New, 
            T.Archive AS GroupPermission_Archive, 
            T.ViewOwner AS GroupPermission_ViewOwner, 
            T.EditOwner AS GroupPermission_EditOwner, 
            T.DelOwner AS GroupPermission_DelOwner, 
            T.ArchiveOwner AS GroupPermission_ArchiveOwner, 
            True AS _from0
        FROM DataModelEntities.GroupPermissions AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Groups"><![CDATA[
    SELECT VALUE -- Constructing Groups
        [RoboAccDBModel.Store.Groups](T1.Groups_ID, T1.Groups_Name, T1.Groups_Description)
    FROM (
        SELECT 
            T.ID AS Groups_ID, 
            T.Name AS Groups_Name, 
            T.Description AS Groups_Description, 
            True AS _from0
        FROM DataModelEntities.Groups AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ItemGroup"><![CDATA[
    SELECT VALUE -- Constructing ItemGroup
        [RoboAccDBModel.Store.ItemGroup](T1.ItemGroup_ID, T1.ItemGroup_Part, T1.ItemGroup_Label, T1.ItemGroup_value)
    FROM (
        SELECT 
            T.ID AS ItemGroup_ID, 
            CAST(T.Part AS [Edm.Int32]) AS ItemGroup_Part, 
            T.Label AS ItemGroup_Label, 
            T.[value] AS ItemGroup_value, 
            True AS _from0
        FROM DataModelEntities.ItemGroups AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Markets"><![CDATA[
    SELECT VALUE -- Constructing Markets
        [RoboAccDBModel.Store.Markets](T1.Markets_ID, T1.Markets_CurrencyFromRef, T1.Markets_CurrencyToRef, T1.Markets_CurrencyRatioD, T1.Markets_CurrencyRatioM, T1.Markets_BuyRate, T1.Markets_SellRate, T1.Markets_Auto, T1.Markets_Active, T1.Markets_Description, T1.Markets_Datetime, T1.Markets_UpDown, T1.Markets_Visable)
    FROM (
        SELECT 
            T.ID AS Markets_ID, 
            T.CurrencyFromRef AS Markets_CurrencyFromRef, 
            T.CurrencyToRef AS Markets_CurrencyToRef, 
            T.CurrencyRatioD AS Markets_CurrencyRatioD, 
            T.CurrencyRatioM AS Markets_CurrencyRatioM, 
            T.BuyRate AS Markets_BuyRate, 
            T.SellRate AS Markets_SellRate, 
            T.Auto AS Markets_Auto, 
            T.Active AS Markets_Active, 
            T.Description AS Markets_Description, 
            T.Datetime AS Markets_Datetime, 
            T.UpDown AS Markets_UpDown, 
            T.Visable AS Markets_Visable, 
            True AS _from0
        FROM DataModelEntities.Markets AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Parts"><![CDATA[
    SELECT VALUE -- Constructing Parts
        [RoboAccDBModel.Store.Parts](T1.Parts_ID, T1.Parts_Name, T1.Parts_Description)
    FROM (
        SELECT 
            T.ID AS Parts_ID, 
            T.Name AS Parts_Name, 
            T.Description AS Parts_Description, 
            True AS _from0
        FROM DataModelEntities.Parts AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ProductGroups"><![CDATA[
    SELECT VALUE -- Constructing ProductGroups
        [RoboAccDBModel.Store.ProductGroups](T1.ProductGroups_ID, T1.ProductGroups_Name, T1.ProductGroups_Description)
    FROM (
        SELECT 
            T.ID AS ProductGroups_ID, 
            T.Name AS ProductGroups_Name, 
            T.Description AS ProductGroups_Description, 
            True AS _from0
        FROM DataModelEntities.ProductGroups AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Production"><![CDATA[
    SELECT VALUE -- Constructing Production
        [RoboAccDBModel.Store.Production](T1.Production_ID, T1.Production_ProuductBase, T1.Production_ProductRef, T1.Production_Value, T1.Production_UnitName, T1.Production_UnitRatio)
    FROM (
        SELECT 
            T.ID AS Production_ID, 
            T.ProuductBase AS Production_ProuductBase, 
            T.ProductRef AS Production_ProductRef, 
            T.[Value] AS Production_Value, 
            T.UnitName AS Production_UnitName, 
            T.UnitRatio AS Production_UnitRatio, 
            True AS _from0
        FROM DataModelEntities.Productions AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ProductItems"><![CDATA[
    SELECT VALUE -- Constructing ProductItems
        [RoboAccDBModel.Store.ProductItems](T1.ProductItems_ID, T1.ProductItems_FactorRef, T1.ProductItems_ProductRef, T1.ProductItems_Value, T1.ProductItems_Fee, T1.ProductItems_UnitName, T1.ProductItems_UnitRatio, T1.ProductItems_TotalPrice, T1.ProductItems_Profit, T1.ProductItems_SellPrice, T1.ProductItems_DiscountPercent, T1.ProductItems_DiscountPrice, T1.ProductItems_Description, T1.ProductItems_VisitorPercent, T1.ProductItems_TaxPercent, T1.ProductItems_VisitorPrice, T1.ProductItems_TaxPrice, T1.ProductItems_ExpireDate, T1.ProductItems_Row, T1.ProductItems_CompanyName, T1.ProductItems_BaseFee, T1.ProductItems_BaseTotalPrice, T1.ProductItems_BaseProfit, T1.ProductItems_BaseSellPrice, T1.ProductItems_BaseDiscountPrice, T1.ProductItems_BaseVisitorPrice, T1.ProductItems_BaseTaxPrice)
    FROM (
        SELECT 
            T.ID AS ProductItems_ID, 
            T.FactorRef AS ProductItems_FactorRef, 
            T.ProductRef AS ProductItems_ProductRef, 
            T.[Value] AS ProductItems_Value, 
            T.Fee AS ProductItems_Fee, 
            T.UnitName AS ProductItems_UnitName, 
            T.UnitRatio AS ProductItems_UnitRatio, 
            T.TotalPrice AS ProductItems_TotalPrice, 
            T.Profit AS ProductItems_Profit, 
            T.SellPrice AS ProductItems_SellPrice, 
            T.DiscountPercent AS ProductItems_DiscountPercent, 
            T.DiscountPrice AS ProductItems_DiscountPrice, 
            T.Description AS ProductItems_Description, 
            T.VisitorPercent AS ProductItems_VisitorPercent, 
            T.TaxPercent AS ProductItems_TaxPercent, 
            T.VisitorPrice AS ProductItems_VisitorPrice, 
            T.TaxPrice AS ProductItems_TaxPrice, 
            T.ExpireDate AS ProductItems_ExpireDate, 
            T.[Row] AS ProductItems_Row, 
            T.CompanyName AS ProductItems_CompanyName, 
            T.BaseFee AS ProductItems_BaseFee, 
            T.BaseTotalPrice AS ProductItems_BaseTotalPrice, 
            T.BaseProfit AS ProductItems_BaseProfit, 
            T.BaseSellPrice AS ProductItems_BaseSellPrice, 
            T.BaseDiscountPrice AS ProductItems_BaseDiscountPrice, 
            T.BaseVisitorPrice AS ProductItems_BaseVisitorPrice, 
            T.BaseTaxPrice AS ProductItems_BaseTaxPrice, 
            True AS _from0
        FROM DataModelEntities.ProductItems AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ProductSubs"><![CDATA[
    SELECT VALUE -- Constructing ProductSubs
        [RoboAccDBModel.Store.ProductSubs](T1.ProductSubs_ID, T1.ProductSubs_GroupRef, T1.ProductSubs_Name, T1.ProductSubs_Description)
    FROM (
        SELECT 
            T.ID AS ProductSubs_ID, 
            T.GroupRef AS ProductSubs_GroupRef, 
            T.Name AS ProductSubs_Name, 
            T.Description AS ProductSubs_Description, 
            True AS _from0
        FROM DataModelEntities.ProductSubs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ProductUnits"><![CDATA[
    SELECT VALUE -- Constructing ProductUnits
        [RoboAccDBModel.Store.ProductUnits](T1.ProductUnits_ID, T1.ProductUnits_ProductRef, T1.ProductUnits_UnitName, T1.ProductUnits_UnitRatio, T1.ProductUnits_SalePrice, T1.ProductUnits_SalePrice2, T1.ProductUnits_SalePrice3)
    FROM (
        SELECT 
            T.ID AS ProductUnits_ID, 
            T.ProductRef AS ProductUnits_ProductRef, 
            T.UnitName AS ProductUnits_UnitName, 
            T.UnitRatio AS ProductUnits_UnitRatio, 
            T.SalePrice AS ProductUnits_SalePrice, 
            T.SalePrice2 AS ProductUnits_SalePrice2, 
            T.SalePrice3 AS ProductUnits_SalePrice3, 
            True AS _from0
        FROM DataModelEntities.ProductUnits AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Users"><![CDATA[
    SELECT VALUE -- Constructing Users
        [RoboAccDBModel.Store.Users](T1.Users_ID, T1.Users_UserName, T1.Users_Password, T1.Users_Description, T1.Users_Active, T1.Users_name, T1.Users_email, T1.Users_avatar, T1.Users_customerId, T1.Users_groupRef)
    FROM (
        SELECT 
            T.ID AS Users_ID, 
            T.UserName AS Users_UserName, 
            T.Password AS Users_Password, 
            T.Description AS Users_Description, 
            T.Active AS Users_Active, 
            T.name AS Users_name, 
            T.email AS Users_email, 
            T.avatar AS Users_avatar, 
            T.customerId AS Users_customerId, 
            T.groupRef AS Users_groupRef, 
            True AS _from0
        FROM DataModelEntities.Users AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Assets"><![CDATA[
    SELECT VALUE -- Constructing Assets
        [RoboAccDBModel.Store.Assets](T1.Assets_ID, T1.Assets_SubRef, T1.Assets_Name, T1.Assets_Amount, T1.Assets_Date, T1.Assets_Description, T1.Assets_HaveBuySell, T1.Assets_BuyAmount, T1.Assets_BuyDate, T1.Assets_BuyCustomerRef, T1.Assets_BuyPayAmount, T1.Assets_BuyDescription, T1.Assets_SellAmount, T1.Assets_SellDate, T1.Assets_SellCustomerRef, T1.Assets_SellRecAmount, T1.Assets_SellDescription, T1.Assets_DocID, T1.Assets_DocIDSell, T1.Assets_CurrencyRef, T1.Assets_CurrencyRatioM, T1.Assets_BuyCurrencyRef, T1.Assets_BuyCurrencyRatioM, T1.Assets_SellCurrencyRef, T1.Assets_SellCurrencyRatioM, T1.Assets_BaseAmount, T1.Assets_BaseBuyAmount, T1.Assets_BaseBuyPayAmount, T1.Assets_BaseSellAmount, T1.Assets_BaseSellRecAmount, T1.Assets_DocIDBuy, T1.Assets_BuyCustomerTransactionRef, T1.Assets_SellCustomerTransactionRef, T1.Assets_AssetTransactionRef, T1.Assets_CurrencyRatioD, T1.Assets_BuyCurrencyRatioD, T1.Assets_SellCurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS Assets_ID, 
            T.SubRef AS Assets_SubRef, 
            T.Name AS Assets_Name, 
            T.Amount AS Assets_Amount, 
            T.Date AS Assets_Date, 
            T.Description AS Assets_Description, 
            T.HaveBuySell AS Assets_HaveBuySell, 
            T.BuyAmount AS Assets_BuyAmount, 
            T.BuyDate AS Assets_BuyDate, 
            T.BuyCustomerRef AS Assets_BuyCustomerRef, 
            T.BuyPayAmount AS Assets_BuyPayAmount, 
            T.BuyDescription AS Assets_BuyDescription, 
            T.SellAmount AS Assets_SellAmount, 
            T.SellDate AS Assets_SellDate, 
            T.SellCustomerRef AS Assets_SellCustomerRef, 
            T.SellRecAmount AS Assets_SellRecAmount, 
            T.SellDescription AS Assets_SellDescription, 
            T.DocID AS Assets_DocID, 
            T.DocIDSell AS Assets_DocIDSell, 
            T.CurrencyRef AS Assets_CurrencyRef, 
            T.CurrencyRatioM AS Assets_CurrencyRatioM, 
            T.BuyCurrencyRef AS Assets_BuyCurrencyRef, 
            T.BuyCurrencyRatioM AS Assets_BuyCurrencyRatioM, 
            T.SellCurrencyRef AS Assets_SellCurrencyRef, 
            T.SellCurrencyRatioM AS Assets_SellCurrencyRatioM, 
            T.BaseAmount AS Assets_BaseAmount, 
            T.BaseBuyAmount AS Assets_BaseBuyAmount, 
            T.BaseBuyPayAmount AS Assets_BaseBuyPayAmount, 
            T.BaseSellAmount AS Assets_BaseSellAmount, 
            T.BaseSellRecAmount AS Assets_BaseSellRecAmount, 
            T.DocIDBuy AS Assets_DocIDBuy, 
            T.BuyCustomerTransactionRef AS Assets_BuyCustomerTransactionRef, 
            T.SellCustomerTransactionRef AS Assets_SellCustomerTransactionRef, 
            T.AssetTransactionRef AS Assets_AssetTransactionRef, 
            T.CurrencyRatioD AS Assets_CurrencyRatioD, 
            T.BuyCurrencyRatioD AS Assets_BuyCurrencyRatioD, 
            T.SellCurrencyRatioD AS Assets_SellCurrencyRatioD, 
            True AS _from0
        FROM DataModelEntities.Assets AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.BankAccounts"><![CDATA[
    SELECT VALUE -- Constructing BankAccounts
        [RoboAccDBModel.Store.BankAccounts](T1.BankAccounts_ID, T1.BankAccounts_BankRef, T1.BankAccounts_Type, T1.BankAccounts_Number, T1.BankAccounts_Date, T1.BankAccounts_Description, T1.BankAccounts_CardNumber, T1.BankAccounts_RowVersion, T1.BankAccounts_DocID, T1.BankAccounts_AccountRef)
    FROM (
        SELECT 
            T.ID AS BankAccounts_ID, 
            T.BankRef AS BankAccounts_BankRef, 
            T.Type AS BankAccounts_Type, 
            T.Number AS BankAccounts_Number, 
            T.Date AS BankAccounts_Date, 
            T.Description AS BankAccounts_Description, 
            T.CardNumber AS BankAccounts_CardNumber, 
            T.RowVersion AS BankAccounts_RowVersion, 
            T.DocID AS BankAccounts_DocID, 
            T.AccountRef AS BankAccounts_AccountRef, 
            True AS _from0
        FROM DataModelEntities.BankAccounts AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Transaction"><![CDATA[
    SELECT VALUE -- Constructing Transaction
        [RoboAccDBModel.Store.Transaction](T1.Transaction_ID, T1.Transaction_Date, T1.Transaction_TypeRef, T1.Transaction_DocRef, T1.Transaction_IDRef, T1.Transaction_CodingRef, T1.Transaction_AccountRef, T1.Transaction_CurrencyRef, T1.Transaction_Creditor, T1.Transaction_Debtor, T1.Transaction_CreditorRemain, T1.Transaction_DebtorRemain, T1.Transaction_CurrencyRatioM, T1.Transaction_RowVersion, T1.Transaction_Description, T1.Transaction_Info, T1.Transaction_CurrencyRatioD, T1.Transaction_CreditorReserved, T1.Transaction_DebtorReserved)
    FROM (
        SELECT 
            T.ID AS Transaction_ID, 
            T.Date AS Transaction_Date, 
            CAST(T.TypeRef AS [Edm.Byte]) AS Transaction_TypeRef, 
            T.DocRef AS Transaction_DocRef, 
            T.IDRef AS Transaction_IDRef, 
            T.CodingRef AS Transaction_CodingRef, 
            T.AccountRef AS Transaction_AccountRef, 
            T.CurrencyRef AS Transaction_CurrencyRef, 
            T.Creditor AS Transaction_Creditor, 
            T.Debtor AS Transaction_Debtor, 
            T.CreditorRemain AS Transaction_CreditorRemain, 
            T.DebtorRemain AS Transaction_DebtorRemain, 
            T.CurrencyRatioM AS Transaction_CurrencyRatioM, 
            T.RowVersion AS Transaction_RowVersion, 
            T.Description AS Transaction_Description, 
            T.Info AS Transaction_Info, 
            T.CurrencyRatioD AS Transaction_CurrencyRatioD, 
            T.CreditorReserved AS Transaction_CreditorReserved, 
            T.DebtorReserved AS Transaction_DebtorReserved, 
            True AS _from0
        FROM DataModelEntities.Transactions AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ChequeRecs"><![CDATA[
    SELECT VALUE -- Constructing ChequeRecs
        [RoboAccDBModel.Store.ChequeRecs](T1.ChequeRecs_ID, T1.ChequeRecs_Serial, T1.ChequeRecs_ExportDate, T1.ChequeRecs_ExpireyDate, T1.ChequeRecs_Amount, T1.ChequeRecs_BankName, T1.ChequeRecs_CustomerRef, T1.ChequeRecs_LastActRef, T1.ChequeRecs_Description, T1.ChequeRecs_ToPerson, T1.ChequeRecs_AccountNumber, T1.ChequeRecs_AccountOwner, T1.ChequeRecs_DateLastAct, T1.ChequeRecs_VagozarbeBank, T1.ChequeRecs_VagozarbeShakhs, T1.ChequeRecs_CurrentYear, T1.ChequeRecs_CashBoxRef, T1.ChequeRecs_DocID, T1.ChequeRecs_DocID2, T1.ChequeRecs_SayadNo, T1.ChequeRecs_SystemState)
    FROM (
        SELECT 
            T.ID AS ChequeRecs_ID, 
            T.Serial AS ChequeRecs_Serial, 
            T.ExportDate AS ChequeRecs_ExportDate, 
            T.ExpireyDate AS ChequeRecs_ExpireyDate, 
            T.Amount AS ChequeRecs_Amount, 
            T.BankName AS ChequeRecs_BankName, 
            T.CustomerRef AS ChequeRecs_CustomerRef, 
            T.LastActRef AS ChequeRecs_LastActRef, 
            T.Description AS ChequeRecs_Description, 
            T.ToPerson AS ChequeRecs_ToPerson, 
            T.AccountNumber AS ChequeRecs_AccountNumber, 
            T.AccountOwner AS ChequeRecs_AccountOwner, 
            T.DateLastAct AS ChequeRecs_DateLastAct, 
            T.VagozarbeBank AS ChequeRecs_VagozarbeBank, 
            T.VagozarbeShakhs AS ChequeRecs_VagozarbeShakhs, 
            T.CurrentYear AS ChequeRecs_CurrentYear, 
            T.CashBoxRef AS ChequeRecs_CashBoxRef, 
            T.DocID AS ChequeRecs_DocID, 
            T.DocID2 AS ChequeRecs_DocID2, 
            T.SayadNo AS ChequeRecs_SayadNo, 
            T.SystemState AS ChequeRecs_SystemState, 
            True AS _from0
        FROM DataModelEntities.ChequeRecs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ChequePays"><![CDATA[
    SELECT VALUE -- Constructing ChequePays
        [RoboAccDBModel.Store.ChequePays](T1.ChequePays_ID, T1.ChequePays_Serial, T1.ChequePays_ExportDate, T1.ChequePays_ExpireyDate, T1.ChequePays_Amount, T1.ChequePays_AccountRef, T1.ChequePays_CustomerRef, T1.ChequePays_LastActRef, T1.ChequePays_Description, T1.ChequePays_ToPerson, T1.ChequePays_DateLastAct, T1.ChequePays_CurrentYear, T1.ChequePays_DocID, T1.ChequePays_SayadNo, T1.ChequePays_SystemState)
    FROM (
        SELECT 
            T.ID AS ChequePays_ID, 
            T.Serial AS ChequePays_Serial, 
            T.ExportDate AS ChequePays_ExportDate, 
            T.ExpireyDate AS ChequePays_ExpireyDate, 
            T.Amount AS ChequePays_Amount, 
            T.AccountRef AS ChequePays_AccountRef, 
            T.CustomerRef AS ChequePays_CustomerRef, 
            T.LastActRef AS ChequePays_LastActRef, 
            T.Description AS ChequePays_Description, 
            T.ToPerson AS ChequePays_ToPerson, 
            T.DateLastAct AS ChequePays_DateLastAct, 
            T.CurrentYear AS ChequePays_CurrentYear, 
            T.DocID AS ChequePays_DocID, 
            T.SayadNo AS ChequePays_SayadNo, 
            T.SystemState AS ChequePays_SystemState, 
            True AS _from0
        FROM DataModelEntities.ChequePays AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.FishPays"><![CDATA[
    SELECT VALUE -- Constructing FishPays
        [RoboAccDBModel.Store.FishPays](T1.FishPays_ID, T1.FishPays_Serial, T1.FishPays_Date, T1.FishPays_BankName, T1.FishPays_Amount, T1.FishPays_CustomerRef, T1.FishPays_Description, T1.FishPays_AccountNumber, T1.FishPays_CashBoxRef, T1.FishPays_DocID)
    FROM (
        SELECT 
            T.ID AS FishPays_ID, 
            T.Serial AS FishPays_Serial, 
            T.Date AS FishPays_Date, 
            T.BankName AS FishPays_BankName, 
            T.Amount AS FishPays_Amount, 
            T.CustomerRef AS FishPays_CustomerRef, 
            T.Description AS FishPays_Description, 
            T.AccountNumber AS FishPays_AccountNumber, 
            T.CashBoxRef AS FishPays_CashBoxRef, 
            T.DocID AS FishPays_DocID, 
            True AS _from0
        FROM DataModelEntities.FishPays AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.FishRecs"><![CDATA[
    SELECT VALUE -- Constructing FishRecs
        [RoboAccDBModel.Store.FishRecs](T1.FishRecs_ID, T1.FishRecs_Serial, T1.FishRecs_Date, T1.FishRecs_Description, T1.FishRecs_Amount, T1.FishRecs_CustomerRef, T1.FishRecs_AccountRef, T1.FishRecs_Type, T1.FishRecs_DocID)
    FROM (
        SELECT 
            T.ID AS FishRecs_ID, 
            T.Serial AS FishRecs_Serial, 
            T.Date AS FishRecs_Date, 
            T.Description AS FishRecs_Description, 
            T.Amount AS FishRecs_Amount, 
            T.CustomerRef AS FishRecs_CustomerRef, 
            T.AccountRef AS FishRecs_AccountRef, 
            CAST(T.Type AS [Edm.Byte]) AS FishRecs_Type, 
            T.DocID AS FishRecs_DocID, 
            True AS _from0
        FROM DataModelEntities.FishRecs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.BankMovements"><![CDATA[
    SELECT VALUE -- Constructing BankMovements
        [RoboAccDBModel.Store.BankMovements](T1.BankMovements_ID, T1.BankMovements_SrcAccountRef, T1.BankMovements_DesAccountRef, T1.BankMovements_Date, T1.BankMovements_Amount, T1.BankMovements_Description, T1.BankMovements_DocID, T1.BankMovements_BankAccountSrcTransactionRef, T1.BankMovements_BankAccountDesTransactionRef)
    FROM (
        SELECT 
            T.ID AS BankMovements_ID, 
            T.SrcAccountRef AS BankMovements_SrcAccountRef, 
            T.DesAccountRef AS BankMovements_DesAccountRef, 
            T.Date AS BankMovements_Date, 
            T.Amount AS BankMovements_Amount, 
            T.Description AS BankMovements_Description, 
            T.DocID AS BankMovements_DocID, 
            T.BankAccountSrcTransactionRef AS BankMovements_BankAccountSrcTransactionRef, 
            T.BankAccountDesTransactionRef AS BankMovements_BankAccountDesTransactionRef, 
            True AS _from0
        FROM DataModelEntities.BankMovements AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.BankActs"><![CDATA[
    SELECT VALUE -- Constructing BankActs
        [RoboAccDBModel.Store.BankActs](T1.BankActs_ID, T1.BankActs_AccountRef, T1.BankActs_Date, T1.BankActs_Amount, T1.BankActs_InOrOut, T1.BankActs_Description, T1.BankActs_CashBoxRef, T1.BankActs_DocID, T1.BankActs_CashBoxTransactionRef, T1.BankActs_BankAccountTransactionRef)
    FROM (
        SELECT 
            T.ID AS BankActs_ID, 
            T.AccountRef AS BankActs_AccountRef, 
            T.Date AS BankActs_Date, 
            T.Amount AS BankActs_Amount, 
            T.InOrOut AS BankActs_InOrOut, 
            T.Description AS BankActs_Description, 
            T.CashBoxRef AS BankActs_CashBoxRef, 
            T.DocID AS BankActs_DocID, 
            T.CashBoxTransactionRef AS BankActs_CashBoxTransactionRef, 
            T.BankAccountTransactionRef AS BankActs_BankAccountTransactionRef, 
            True AS _from0
        FROM DataModelEntities.BankActs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Capitals"><![CDATA[
    SELECT VALUE -- Constructing Capitals
        [RoboAccDBModel.Store.Capitals](T1.Capitals_ID, T1.Capitals_Who, T1.Capitals_Amount, T1.Capitals_Date, T1.Capitals_Description, T1.Capitals_CapitalActionRef, T1.Capitals_AccountRef, T1.Capitals_CurrentYear, T1.Capitals_CashBoxRef, T1.Capitals_DocID, T1.Capitals_CapitalTransactionRef, T1.Capitals_CashBoxOrBankAccountTransactionRef)
    FROM (
        SELECT 
            T.ID AS Capitals_ID, 
            T.Who AS Capitals_Who, 
            T.Amount AS Capitals_Amount, 
            T.Date AS Capitals_Date, 
            T.Description AS Capitals_Description, 
            T.CapitalActionRef AS Capitals_CapitalActionRef, 
            T.AccountRef AS Capitals_AccountRef, 
            T.CurrentYear AS Capitals_CurrentYear, 
            T.CashBoxRef AS Capitals_CashBoxRef, 
            T.DocID AS Capitals_DocID, 
            T.CapitalTransactionRef AS Capitals_CapitalTransactionRef, 
            T.CashBoxOrBankAccountTransactionRef AS Capitals_CashBoxOrBankAccountTransactionRef, 
            True AS _from0
        FROM DataModelEntities.Capitals AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ChequeRecActs"><![CDATA[
    SELECT VALUE -- Constructing ChequeRecActs
        [RoboAccDBModel.Store.ChequeRecActs](T1.ChequeRecActs_ID, T1.ChequeRecActs_ChequeRecRef, T1.ChequeRecActs_ChequeActRef, T1.ChequeRecActs_CustomerRef, T1.ChequeRecActs_AccountRef, T1.ChequeRecActs_Date, T1.ChequeRecActs_Description)
    FROM (
        SELECT 
            T.ID AS ChequeRecActs_ID, 
            T.ChequeRecRef AS ChequeRecActs_ChequeRecRef, 
            T.ChequeActRef AS ChequeRecActs_ChequeActRef, 
            T.CustomerRef AS ChequeRecActs_CustomerRef, 
            T.AccountRef AS ChequeRecActs_AccountRef, 
            T.Date AS ChequeRecActs_Date, 
            T.Description AS ChequeRecActs_Description, 
            True AS _from0
        FROM DataModelEntities.ChequeRecActs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Wastages"><![CDATA[
    SELECT VALUE -- Constructing Wastages
        [RoboAccDBModel.Store.Wastages](T1.Wastages_ID, T1.Wastages_ProductRef, T1.Wastages_Value, T1.Wastages_Date, T1.Wastages_Description, T1.Wastages_Type, T1.Wastages_Amount, T1.Wastages_RefID, T1.Wastages_UnitName, T1.Wastages_UnitRatio, T1.Wastages_DocID, T1.Wastages_CurrencyRef, T1.Wastages_CurrencyRatioM, T1.Wastages_CurrencyRatioD, T1.Wastages_BaseAmount, T1.Wastages_TypeDes)
    FROM (
        SELECT 
            T.ID AS Wastages_ID, 
            T.ProductRef AS Wastages_ProductRef, 
            T.[Value] AS Wastages_Value, 
            T.Date AS Wastages_Date, 
            T.Description AS Wastages_Description, 
            CAST(T.Type AS [Edm.Byte]) AS Wastages_Type, 
            T.Amount AS Wastages_Amount, 
            T.RefID AS Wastages_RefID, 
            T.UnitName AS Wastages_UnitName, 
            T.UnitRatio AS Wastages_UnitRatio, 
            T.DocID AS Wastages_DocID, 
            T.CurrencyRef AS Wastages_CurrencyRef, 
            T.CurrencyRatioM AS Wastages_CurrencyRatioM, 
            T.CurrencyRatioD AS Wastages_CurrencyRatioD, 
            T.BaseAmount AS Wastages_BaseAmount, 
            T.TypeDes AS Wastages_TypeDes, 
            True AS _from0
        FROM DataModelEntities.Wastages AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ProductCardex"><![CDATA[
    SELECT VALUE -- Constructing ProductCardex
        [RoboAccDBModel.Store.ProductCardex](T1.ProductCardex_ID, T1.ProductCardex_Date, T1.ProductCardex_RefTable, T1.ProductCardex_RefID, T1.ProductCardex_ProductRef, T1.ProductCardex_IncDec, T1.ProductCardex_Value, T1.ProductCardex_Fee, T1.ProductCardex_Sum, T1.ProductCardex_ValueR, T1.ProductCardex_FeeR, T1.ProductCardex_SumR, T1.ProductCardex_ProductItemRef, T1.ProductCardex_CurrencyRef, T1.ProductCardex_CurrencyRatioM, T1.ProductCardex_CurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS ProductCardex_ID, 
            T.Date AS ProductCardex_Date, 
            CAST(T.RefTable AS [Edm.Byte]) AS ProductCardex_RefTable, 
            T.RefID AS ProductCardex_RefID, 
            T.ProductRef AS ProductCardex_ProductRef, 
            T.IncDec AS ProductCardex_IncDec, 
            T.[Value] AS ProductCardex_Value, 
            T.Fee AS ProductCardex_Fee, 
            T.Sum AS ProductCardex_Sum, 
            T.ValueR AS ProductCardex_ValueR, 
            T.FeeR AS ProductCardex_FeeR, 
            T.SumR AS ProductCardex_SumR, 
            T.ProductItemRef AS ProductCardex_ProductItemRef, 
            T.CurrencyRef AS ProductCardex_CurrencyRef, 
            T.CurrencyRatioM AS ProductCardex_CurrencyRatioM, 
            T.CurrencyRatioD AS ProductCardex_CurrencyRatioD, 
            True AS _from0
        FROM DataModelEntities.ProductCardexes AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Places"><![CDATA[
    SELECT VALUE -- Constructing Places
        [RoboAccDBModel.Store.Places](T1.Places_ID, T1.Places_Name, T1.Places_IsParent, T1.Places_ParentID, T1.Places_OrderNumber, T1.Places_ChildCount, T1.Places_Description)
    FROM (
        SELECT 
            T.ID AS Places_ID, 
            T.Name AS Places_Name, 
            T.IsParent AS Places_IsParent, 
            T.ParentID AS Places_ParentID, 
            T.OrderNumber AS Places_OrderNumber, 
            T.ChildCount AS Places_ChildCount, 
            T.Description AS Places_Description, 
            True AS _from0
        FROM DataModelEntities.Places AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Products"><![CDATA[
    SELECT VALUE -- Constructing Products
        [RoboAccDBModel.Store.Products](T1.Products_ID, T1.Products_SubRef, T1.Products_Name, T1.Products_Code, T1.Products_property3, T1.Products_property1, T1.Products_property2, T1.Products_StoreName, T1.Products_Shelf, T1.Products_Floor, T1.Products_Row, T1.Products_Description, T1.Products_BarCode, T1.Products_Date, T1.Products_picture, T1.Products_bench, T1.Products_OrderPoint, T1.Products_OrderPointFlag, T1.Products_ExpireDate, T1.Products_Value, T1.Products_FirstValue, T1.Products_PurchasePrice, T1.Products_LastPurchasePrice, T1.Products_FirstPurchasePrice, T1.Products_SalePrice, T1.Products_SalePrice2, T1.Products_SalePrice3, T1.Products_Rank, T1.Products_Active, T1.Products_Production, T1.Products_Type, T1.Products_UnitName, T1.Products_UnitRatio, T1.Products_RowVersion, T1.Products_ProfitPercent, T1.Products_LossPercent, T1.Products_CurPriceRatioM, T1.Products_CurPriceRatioD, T1.Products_CurIDCardex, T1.Products_CurExpireDate, T1.Products_CurPrice, T1.Products_CurValue, T1.Products_PriceType, T1.Products_VisitorPercent, T1.Products_TaxPercent, T1.Products_ChangedPrice, T1.Products_ChangedPriceDate, T1.Products_Discount, T1.Products_DiscountEndDate, T1.Products_SellCurrencyRef, T1.Products_LastIDCardexInc, T1.Products_ChangedPriceMode, T1.Products_BuyCurrencyRef, T1.Products_SaleInApp, T1.Products_Check, T1.Products_ReservedValue, T1.Products_MoadianCode)
    FROM (
        SELECT 
            T.ID AS Products_ID, 
            T.SubRef AS Products_SubRef, 
            T.Name AS Products_Name, 
            T.Code AS Products_Code, 
            T.property3 AS Products_property3, 
            T.property1 AS Products_property1, 
            T.property2 AS Products_property2, 
            T.StoreName AS Products_StoreName, 
            T.Shelf AS Products_Shelf, 
            T.Floor AS Products_Floor, 
            T.[Row] AS Products_Row, 
            T.Description AS Products_Description, 
            T.BarCode AS Products_BarCode, 
            T.Date AS Products_Date, 
            T.picture AS Products_picture, 
            T.bench AS Products_bench, 
            T.OrderPoint AS Products_OrderPoint, 
            T.OrderPointFlag AS Products_OrderPointFlag, 
            T.ExpireDate AS Products_ExpireDate, 
            T.[Value] AS Products_Value, 
            T.FirstValue AS Products_FirstValue, 
            T.PurchasePrice AS Products_PurchasePrice, 
            T.LastPurchasePrice AS Products_LastPurchasePrice, 
            T.FirstPurchasePrice AS Products_FirstPurchasePrice, 
            T.SalePrice AS Products_SalePrice, 
            T.SalePrice2 AS Products_SalePrice2, 
            T.SalePrice3 AS Products_SalePrice3, 
            T.Rank AS Products_Rank, 
            T.Active AS Products_Active, 
            T.Production AS Products_Production, 
            T.Type AS Products_Type, 
            T.UnitName AS Products_UnitName, 
            T.UnitRatio AS Products_UnitRatio, 
            T.RowVersion AS Products_RowVersion, 
            T.ProfitPercent AS Products_ProfitPercent, 
            T.LossPercent AS Products_LossPercent, 
            T.CurPriceRatioM AS Products_CurPriceRatioM, 
            T.CurPriceRatioD AS Products_CurPriceRatioD, 
            T.CurIDCardex AS Products_CurIDCardex, 
            T.CurExpireDate AS Products_CurExpireDate, 
            T.CurPrice AS Products_CurPrice, 
            T.CurValue AS Products_CurValue, 
            T.PriceType AS Products_PriceType, 
            T.VisitorPercent AS Products_VisitorPercent, 
            T.TaxPercent AS Products_TaxPercent, 
            T.ChangedPrice AS Products_ChangedPrice, 
            T.ChangedPriceDate AS Products_ChangedPriceDate, 
            T.Discount AS Products_Discount, 
            T.DiscountEndDate AS Products_DiscountEndDate, 
            T.SellCurrencyRef AS Products_SellCurrencyRef, 
            T.LastIDCardexInc AS Products_LastIDCardexInc, 
            T.ChangedPriceMode AS Products_ChangedPriceMode, 
            T.BuyCurrencyRef AS Products_BuyCurrencyRef, 
            T.SaleInApp AS Products_SaleInApp, 
            T.Check AS Products_Check, 
            T.ReservedValue AS Products_ReservedValue, 
            T.MoadianCode AS Products_MoadianCode, 
            True AS _from0
        FROM DataModelEntities.Products AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.TypeRefs"><![CDATA[
    SELECT VALUE -- Constructing TypeRefs
        [RoboAccDBModel.Store.TypeRefs](T1.TypeRefs_ID, T1.TypeRefs_Name, T1.TypeRefs_EN, T1.TypeRefs_AR, T1.TypeRefs_IQ, T1.TypeRefs_IR)
    FROM (
        SELECT 
            CAST(T.ID AS [Edm.Byte]) AS TypeRefs_ID, 
            T.Name AS TypeRefs_Name, 
            T.EN AS TypeRefs_EN, 
            T.AR AS TypeRefs_AR, 
            T.IQ AS TypeRefs_IQ, 
            T.IR AS TypeRefs_IR, 
            True AS _from0
        FROM DataModelEntities.TypeRefs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Factors"><![CDATA[
    SELECT VALUE -- Constructing Factors
        [RoboAccDBModel.Store.Factors](T1.Factors_ID, T1.Factors_Date, T1.Factors_CustomerRef, T1.Factors_TypeRef, T1.Factors_ProductSumPrice, T1.Factors_DiscountPercent, T1.Factors_DiscountPrice, T1.Factors_RealSum, T1.Factors_Profit, T1.Factors_Description, T1.Factors_DeductionsSum, T1.Factors_IsTemp, T1.Factors_DefrayDate, T1.Factors_AdditionsSum, T1.Factors_OrginalFactorID, T1.Factors_RecPayAmount, T1.Factors_Tax, T1.Factors_RemainAmount, T1.Factors_Serial, T1.Factors_Settlement, T1.Factors_VisitorRef, T1.Factors_VisitorAmount, T1.Factors_Attachment, T1.Factors_ItemGroupRef, T1.Factors_OwnerRef, T1.Factors_Flag, T1.Factors_VisitorPercent, T1.Factors_TaxPercent, T1.Factors_DocID, T1.Factors_CurrencyRef, T1.Factors_CurrencyRatioM, T1.Factors_BaseProductSumPrice, T1.Factors_BaseDiscountPrice, T1.Factors_BaseRealSum, T1.Factors_BaseProfit, T1.Factors_BaseDeductionsSum, T1.Factors_BaseAdditionsSum, T1.Factors_BaseRecPayAmount, T1.Factors_BaseTax, T1.Factors_BaseRemainAmount, T1.Factors_BaseVisitorAmount, T1.Factors_CurrencyRatioD, T1.Factors_MoadianSend)
    FROM (
        SELECT 
            T.ID AS Factors_ID, 
            T.Date AS Factors_Date, 
            T.CustomerRef AS Factors_CustomerRef, 
            CAST(T.TypeRef AS [Edm.Byte]) AS Factors_TypeRef, 
            T.ProductSumPrice AS Factors_ProductSumPrice, 
            T.DiscountPercent AS Factors_DiscountPercent, 
            T.DiscountPrice AS Factors_DiscountPrice, 
            T.RealSum AS Factors_RealSum, 
            T.Profit AS Factors_Profit, 
            T.Description AS Factors_Description, 
            T.DeductionsSum AS Factors_DeductionsSum, 
            T.IsTemp AS Factors_IsTemp, 
            T.DefrayDate AS Factors_DefrayDate, 
            T.AdditionsSum AS Factors_AdditionsSum, 
            T.OrginalFactorID AS Factors_OrginalFactorID, 
            T.RecPayAmount AS Factors_RecPayAmount, 
            T.Tax AS Factors_Tax, 
            T.RemainAmount AS Factors_RemainAmount, 
            T.Serial AS Factors_Serial, 
            T.Settlement AS Factors_Settlement, 
            T.VisitorRef AS Factors_VisitorRef, 
            T.VisitorAmount AS Factors_VisitorAmount, 
            T.Attachment AS Factors_Attachment, 
            T.ItemGroupRef AS Factors_ItemGroupRef, 
            T.OwnerRef AS Factors_OwnerRef, 
            T.Flag AS Factors_Flag, 
            T.VisitorPercent AS Factors_VisitorPercent, 
            T.TaxPercent AS Factors_TaxPercent, 
            T.DocID AS Factors_DocID, 
            T.CurrencyRef AS Factors_CurrencyRef, 
            T.CurrencyRatioM AS Factors_CurrencyRatioM, 
            T.BaseProductSumPrice AS Factors_BaseProductSumPrice, 
            T.BaseDiscountPrice AS Factors_BaseDiscountPrice, 
            T.BaseRealSum AS Factors_BaseRealSum, 
            T.BaseProfit AS Factors_BaseProfit, 
            T.BaseDeductionsSum AS Factors_BaseDeductionsSum, 
            T.BaseAdditionsSum AS Factors_BaseAdditionsSum, 
            T.BaseRecPayAmount AS Factors_BaseRecPayAmount, 
            T.BaseTax AS Factors_BaseTax, 
            T.BaseRemainAmount AS Factors_BaseRemainAmount, 
            T.BaseVisitorAmount AS Factors_BaseVisitorAmount, 
            T.CurrencyRatioD AS Factors_CurrencyRatioD, 
            T.MoadianSend AS Factors_MoadianSend, 
            True AS _from0
        FROM DataModelEntities.Factors AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Cashs"><![CDATA[
    SELECT VALUE -- Constructing Cashs
        [RoboAccDBModel.Store.Cashs](T1.Cashs_ID, T1.Cashs_Description, T1.Cashs_Date, T1.Cashs_Amount, T1.Cashs_CustomerRef, T1.Cashs_type, T1.Cashs_CashboxRef, T1.Cashs_DocID, T1.Cashs_BaseAmount, T1.Cashs_CurrencyRatioM, T1.Cashs_VisitorRef, T1.Cashs_Recived, T1.Cashs_CurrencyRatioD, T1.Cashs_CurrencyRef, T1.Cashs_OwnerRef)
    FROM (
        SELECT 
            T.ID AS Cashs_ID, 
            T.Description AS Cashs_Description, 
            T.Date AS Cashs_Date, 
            T.Amount AS Cashs_Amount, 
            T.CustomerRef AS Cashs_CustomerRef, 
            T.type AS Cashs_type, 
            T.CashboxRef AS Cashs_CashboxRef, 
            T.DocID AS Cashs_DocID, 
            T.BaseAmount AS Cashs_BaseAmount, 
            T.CurrencyRatioM AS Cashs_CurrencyRatioM, 
            T.VisitorRef AS Cashs_VisitorRef, 
            T.Recived AS Cashs_Recived, 
            T.CurrencyRatioD AS Cashs_CurrencyRatioD, 
            T.CurrencyRef AS Cashs_CurrencyRef, 
            T.OwnerRef AS Cashs_OwnerRef, 
            True AS _from0
        FROM DataModelEntities.Cashs AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.InOuts"><![CDATA[
    SELECT VALUE -- Constructing InOuts
        [RoboAccDBModel.Store.InOuts](T1.InOuts_ID, T1.InOuts_SubRef, T1.InOuts_Date, T1.InOuts_Amount, T1.InOuts_Description, T1.InOuts_type, T1.InOuts_RecPayAmount, T1.InOuts_CustomerRef, T1.InOuts_DocID, T1.InOuts_DocIDIn, T1.InOuts_ServiceRef, T1.InOuts_Count, T1.InOuts_CurrencyRef, T1.InOuts_CurrencyRatioM, T1.InOuts_BaseAmount, T1.InOuts_BaseRecPayAmount, T1.InOuts_CashID, T1.InOuts_CurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS InOuts_ID, 
            T.SubRef AS InOuts_SubRef, 
            T.Date AS InOuts_Date, 
            T.Amount AS InOuts_Amount, 
            T.Description AS InOuts_Description, 
            T.type AS InOuts_type, 
            T.RecPayAmount AS InOuts_RecPayAmount, 
            T.CustomerRef AS InOuts_CustomerRef, 
            T.DocID AS InOuts_DocID, 
            T.DocIDIn AS InOuts_DocIDIn, 
            T.ServiceRef AS InOuts_ServiceRef, 
            T.Count AS InOuts_Count, 
            T.CurrencyRef AS InOuts_CurrencyRef, 
            T.CurrencyRatioM AS InOuts_CurrencyRatioM, 
            T.BaseAmount AS InOuts_BaseAmount, 
            T.BaseRecPayAmount AS InOuts_BaseRecPayAmount, 
            T.CashID AS InOuts_CashID, 
            T.CurrencyRatioD AS InOuts_CurrencyRatioD, 
            True AS _from0
        FROM DataModelEntities.InOuts AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Customers"><![CDATA[
    SELECT VALUE -- Constructing Customers
        [RoboAccDBModel.Store.Customers](T1.Customers_ID, T1.Customers_Code, T1.Customers_Name, T1.Customers_Description, T1.Customers_Tel, T1.Customers_Mobile, T1.Customers_Fax, T1.Customers_Address, T1.Customers_Pic, T1.Customers_UntoldLastDate, T1.Customers_Email, T1.Customers_DateCreate, T1.Customers_Active, T1.Customers_NationalCode, T1.Customers_PostCode, T1.Customers_EconomicCode, T1.Customers_Province, T1.Customers_TownShip, T1.Customers_Town, T1.Customers_ItemGroupRef, T1.Customers_Type, T1.Customers_RowVersion, T1.Customers_PerDayFactor, T1.Customers_SumBuy, T1.Customers_VisitorPercent, T1.Customers_Credit, T1.Customers_DocID, T1.Customers_Date, T1.Customers_TypeRef, T1.Customers_VisitorRef, T1.Customers_AccountRef, T1.Customers_Latitudes, T1.Customers_Longitudes, T1.Customers_position, T1.Customers_addresses, T1.Customers_PlacesRef)
    FROM (
        SELECT 
            T.ID AS Customers_ID, 
            T.Code AS Customers_Code, 
            T.Name AS Customers_Name, 
            T.Description AS Customers_Description, 
            T.Tel AS Customers_Tel, 
            T.Mobile AS Customers_Mobile, 
            T.Fax AS Customers_Fax, 
            T.Address AS Customers_Address, 
            T.Pic AS Customers_Pic, 
            T.UntoldLastDate AS Customers_UntoldLastDate, 
            T.Email AS Customers_Email, 
            T.DateCreate AS Customers_DateCreate, 
            T.Active AS Customers_Active, 
            T.NationalCode AS Customers_NationalCode, 
            T.PostCode AS Customers_PostCode, 
            T.EconomicCode AS Customers_EconomicCode, 
            T.Province AS Customers_Province, 
            T.TownShip AS Customers_TownShip, 
            T.Town AS Customers_Town, 
            T.ItemGroupRef AS Customers_ItemGroupRef, 
            T.Type AS Customers_Type, 
            T.RowVersion AS Customers_RowVersion, 
            T.PerDayFactor AS Customers_PerDayFactor, 
            T.SumBuy AS Customers_SumBuy, 
            T.VisitorPercent AS Customers_VisitorPercent, 
            T.Credit AS Customers_Credit, 
            T.DocID AS Customers_DocID, 
            T.Date AS Customers_Date, 
            T.TypeRef AS Customers_TypeRef, 
            T.VisitorRef AS Customers_VisitorRef, 
            T.AccountRef AS Customers_AccountRef, 
            T.Latitudes AS Customers_Latitudes, 
            T.Longitudes AS Customers_Longitudes, 
            T.position AS Customers_position, 
            T.addresses AS Customers_addresses, 
            T.PlacesRef AS Customers_PlacesRef, 
            True AS _from0
        FROM DataModelEntities.Customers AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.CashBox"><![CDATA[
    SELECT VALUE -- Constructing CashBox
        [RoboAccDBModel.Store.CashBox](T1.CashBox_ID, T1.CashBox_Name, T1.CashBox_Description, T1.CashBox_Date, T1.CashBox_Type, T1.CashBox_RowVersion, T1.CashBox_DocID, T1.CashBox_AccountRef, T1.CashBox_CurrencyRef)
    FROM (
        SELECT 
            T.ID AS CashBox_ID, 
            T.Name AS CashBox_Name, 
            T.Description AS CashBox_Description, 
            T.Date AS CashBox_Date, 
            T.Type AS CashBox_Type, 
            T.RowVersion AS CashBox_RowVersion, 
            T.DocID AS CashBox_DocID, 
            T.AccountRef AS CashBox_AccountRef, 
            T.CurrencyRef AS CashBox_CurrencyRef, 
            True AS _from0
        FROM DataModelEntities.CashBoxes AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Banks"><![CDATA[
    SELECT VALUE -- Constructing Banks
        [RoboAccDBModel.Bank](T1.Bank_ID, T1.Bank_Name, T1.Bank_BranchName, T1.Bank_Branchcode, T1.Bank_Description, T1.Bank_Address, T1.Bank_Tel, T1.Bank_Fax)
    FROM (
        SELECT 
            T.ID AS Bank_ID, 
            T.Name AS Bank_Name, 
            T.BranchName AS Bank_BranchName, 
            T.Branchcode AS Bank_Branchcode, 
            T.Description AS Bank_Description, 
            T.Address AS Bank_Address, 
            T.Tel AS Bank_Tel, 
            T.Fax AS Bank_Fax, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Banks AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.CapitalActions"><![CDATA[
    SELECT VALUE -- Constructing CapitalActions
        [RoboAccDBModel.CapitalAction](T1.CapitalAction_ID, T1.CapitalAction_Name, T1.CapitalAction_Description)
    FROM (
        SELECT 
            T.ID AS CapitalAction_ID, 
            T.Name AS CapitalAction_Name, 
            T.Description AS CapitalAction_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.CapitalAction AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ChequeActs"><![CDATA[
    SELECT VALUE -- Constructing ChequeActs
        [RoboAccDBModel.ChequeAct](T1.ChequeAct_ID, T1.ChequeAct_Name, T1.ChequeAct_Type, T1.ChequeAct_Description)
    FROM (
        SELECT 
            T.ID AS ChequeAct_ID, 
            T.Name AS ChequeAct_Name, 
            T.Type AS ChequeAct_Type, 
            T.Description AS ChequeAct_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ChequeActs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ChequePayActs"><![CDATA[
    SELECT VALUE -- Constructing ChequePayActs
        [RoboAccDBModel.ChequePayAct](T1.ChequePayAct_ID, T1.ChequePayAct_ChequePayRef, T1.ChequePayAct_ChequeActRef, T1.ChequePayAct_Date, T1.ChequePayAct_Description)
    FROM (
        SELECT 
            T.ID AS ChequePayAct_ID, 
            T.ChequePayRef AS ChequePayAct_ChequePayRef, 
            T.ChequeActRef AS ChequePayAct_ChequeActRef, 
            T.Date AS ChequePayAct_Date, 
            T.Description AS ChequePayAct_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ChequePayActs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Codings"><![CDATA[
    SELECT VALUE -- Constructing Codings
        [RoboAccDBModel.Coding](T1.Coding_AccountCode, T1.Coding_Account, T1.Coding_Code, T1.Coding_AccountName, T1.Coding_First, T1.Coding_Bed, T1.Coding_Bes, T1.Coding_Remain, T1.Coding_Level, T1.Coding_Type, T1.Coding_Group, T1.Coding_Kind, T1.Coding_System)
    FROM (
        SELECT 
            T.AccountCode AS Coding_AccountCode, 
            T.Account AS Coding_Account, 
            T.Code AS Coding_Code, 
            T.AccountName AS Coding_AccountName, 
            T.First AS Coding_First, 
            T.Bed AS Coding_Bed, 
            T.Bes AS Coding_Bes, 
            T.Remain AS Coding_Remain, 
            T.Level AS Coding_Level, 
            T.Type AS Coding_Type, 
            T.[Group] AS Coding_Group, 
            T.Kind AS Coding_Kind, 
            T.System AS Coding_System, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Coding AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Costuses"><![CDATA[
    SELECT VALUE -- Constructing Costuses
        [RoboAccDBModel.Costus](T1.Costus_ID, T1.Costus_Amount, T1.Costus_CostusCount, T1.Costus_CountPay, T1.Costus_PeriodType, T1.Costus_PeriodCount, T1.Costus_StartDate, T1.Costus_Description, T1.Costus_Completed, T1.Costus_CustomerRef, T1.Costus_DocID)
    FROM (
        SELECT 
            T.ID AS Costus_ID, 
            T.Amount AS Costus_Amount, 
            T.CostusCount AS Costus_CostusCount, 
            T.CountPay AS Costus_CountPay, 
            T.PeriodType AS Costus_PeriodType, 
            T.PeriodCount AS Costus_PeriodCount, 
            T.StartDate AS Costus_StartDate, 
            T.Description AS Costus_Description, 
            T.Completed AS Costus_Completed, 
            T.CustomerRef AS Costus_CustomerRef, 
            T.DocID AS Costus_DocID, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Costuses AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.CostusItems"><![CDATA[
    SELECT VALUE -- Constructing CostusItems
        [RoboAccDBModel.CostusItem](T1.CostusItem_ID, T1.CostusItem_CostusRef, T1.CostusItem_ExpireDate, T1.CostusItem_Amount, T1.CostusItem_Recive, T1.CostusItem_Description, T1.CostusItem_RecDate, T1.CostusItem_AmountRecive, T1.CostusItem_DocID)
    FROM (
        SELECT 
            T.ID AS CostusItem_ID, 
            T.CostusRef AS CostusItem_CostusRef, 
            T.ExpireDate AS CostusItem_ExpireDate, 
            T.Amount AS CostusItem_Amount, 
            T.Recive AS CostusItem_Recive, 
            T.Description AS CostusItem_Description, 
            T.RecDate AS CostusItem_RecDate, 
            T.AmountRecive AS CostusItem_AmountRecive, 
            T.DocID AS CostusItem_DocID, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.CostusItems AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Currencies"><![CDATA[
    SELECT VALUE -- Constructing Currencies
        [RoboAccDBModel.Currency](T1.Currency_ID, T1.Currency_Name, T1.Currency_GolobalName, T1.Currency_TypeRef, T1.Currency_Country)
    FROM (
        SELECT 
            T.ID AS Currency_ID, 
            T.Name AS Currency_Name, 
            T.GolobalName AS Currency_GolobalName, 
            T.TypeRef AS Currency_TypeRef, 
            T.Country AS Currency_Country, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Currencies AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.CurrencyHistories"><![CDATA[
    SELECT VALUE -- Constructing CurrencyHistories
        [RoboAccDBModel.CurrencyHistory](T1.CurrencyHistory_ID, T1.CurrencyHistory_Date, T1.CurrencyHistory_CurrencyFromRef, T1.CurrencyHistory_CurrencyToRef, T1.CurrencyHistory_Description, T1.CurrencyHistory_CurrencyRatioD, T1.CurrencyHistory_CurrencyRatioM)
    FROM (
        SELECT 
            T.ID AS CurrencyHistory_ID, 
            T.Date AS CurrencyHistory_Date, 
            T.CurrencyFromRef AS CurrencyHistory_CurrencyFromRef, 
            T.CurrencyToRef AS CurrencyHistory_CurrencyToRef, 
            T.Description AS CurrencyHistory_Description, 
            T.CurrencyRatioD AS CurrencyHistory_CurrencyRatioD, 
            T.CurrencyRatioM AS CurrencyHistory_CurrencyRatioM, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.CurrencyHistory AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.DetailAccounts"><![CDATA[
    SELECT VALUE -- Constructing DetailAccounts
        [RoboAccDBModel.DetailAccount](T1.DetailAccount_ID, T1.DetailAccount_CodingRef, T1.DetailAccount_RefTable, T1.DetailAccount_RefID, T1.DetailAccount_GroupRef, T1.DetailAccount_Name, T1.DetailAccount_First, T1.DetailAccount_Creditor, T1.DetailAccount_Debtor, T1.DetailAccount_Remain, T1.DetailAccount_CurrencyRef, T1.DetailAccount_DocID)
    FROM (
        SELECT 
            T.ID AS DetailAccount_ID, 
            T.CodingRef AS DetailAccount_CodingRef, 
            CAST(T.RefTable AS [RoboAccDBModel.RefTableEnum]) AS DetailAccount_RefTable, 
            T.RefID AS DetailAccount_RefID, 
            T.GroupRef AS DetailAccount_GroupRef, 
            T.Name AS DetailAccount_Name, 
            T.First AS DetailAccount_First, 
            T.Creditor AS DetailAccount_Creditor, 
            T.Debtor AS DetailAccount_Debtor, 
            T.Remain AS DetailAccount_Remain, 
            T.CurrencyRef AS DetailAccount_CurrencyRef, 
            T.DocID AS DetailAccount_DocID, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.DetailAccounts AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.DocHeaders"><![CDATA[
    SELECT VALUE -- Constructing DocHeaders
        [RoboAccDBModel.DocHeader](T1.DocHeader_ID, T1.DocHeader_RefTable, T1.DocHeader_RefID, T1.DocHeader_Date, T1.DocHeader_Subject, T1.DocHeader_Bed, T1.DocHeader_Bes)
    FROM (
        SELECT 
            T.ID AS DocHeader_ID, 
            CAST(T.RefTable AS [RoboAccDBModel.RefTableEnum]) AS DocHeader_RefTable, 
            T.RefID AS DocHeader_RefID, 
            T.Date AS DocHeader_Date, 
            T.Subject AS DocHeader_Subject, 
            T.Bed AS DocHeader_Bed, 
            T.Bes AS DocHeader_Bes, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.DocHeader AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.GroupPermissions"><![CDATA[
    SELECT VALUE -- Constructing GroupPermissions
        [RoboAccDBModel.GroupPermission](T1.GroupPermission_ID, T1.GroupPermission_GroupRef, T1.GroupPermission_PartRef, T1.GroupPermission_View, T1.GroupPermission_Edit, T1.GroupPermission_Del, T1.GroupPermission_New, T1.GroupPermission_Archive, T1.GroupPermission_ViewOwner, T1.GroupPermission_EditOwner, T1.GroupPermission_DelOwner, T1.GroupPermission_ArchiveOwner)
    FROM (
        SELECT 
            T.ID AS GroupPermission_ID, 
            T.GroupRef AS GroupPermission_GroupRef, 
            T.PartRef AS GroupPermission_PartRef, 
            T.View AS GroupPermission_View, 
            T.Edit AS GroupPermission_Edit, 
            T.Del AS GroupPermission_Del, 
            T.New AS GroupPermission_New, 
            T.Archive AS GroupPermission_Archive, 
            T.ViewOwner AS GroupPermission_ViewOwner, 
            T.EditOwner AS GroupPermission_EditOwner, 
            T.DelOwner AS GroupPermission_DelOwner, 
            T.ArchiveOwner AS GroupPermission_ArchiveOwner, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.GroupPermission AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Groups"><![CDATA[
    SELECT VALUE -- Constructing Groups
        [RoboAccDBModel.Group](T1.Group_ID, T1.Group_Name, T1.Group_Description)
    FROM (
        SELECT 
            T.ID AS Group_ID, 
            T.Name AS Group_Name, 
            T.Description AS Group_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Groups AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ItemGroups"><![CDATA[
    SELECT VALUE -- Constructing ItemGroups
        [RoboAccDBModel.ItemGroup](T1.ItemGroup_ID, T1.ItemGroup_Part, T1.ItemGroup_Label, T1.ItemGroup_value)
    FROM (
        SELECT 
            T.ID AS ItemGroup_ID, 
            CAST(T.Part AS [RoboAccDBModel.ItemGroupParts]) AS ItemGroup_Part, 
            T.Label AS ItemGroup_Label, 
            T.[value] AS ItemGroup_value, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ItemGroup AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Markets"><![CDATA[
    SELECT VALUE -- Constructing Markets
        [RoboAccDBModel.Market](T1.Market_ID, T1.Market_CurrencyFromRef, T1.Market_CurrencyToRef, T1.Market_BuyRate, T1.Market_SellRate, T1.Market_Auto, T1.Market_Active, T1.Market_Description, T1.Market_Datetime, T1.Market_UpDown, T1.Market_Visable, T1.Market_CurrencyRatioD, T1.Market_CurrencyRatioM)
    FROM (
        SELECT 
            T.ID AS Market_ID, 
            T.CurrencyFromRef AS Market_CurrencyFromRef, 
            T.CurrencyToRef AS Market_CurrencyToRef, 
            T.BuyRate AS Market_BuyRate, 
            T.SellRate AS Market_SellRate, 
            T.Auto AS Market_Auto, 
            T.Active AS Market_Active, 
            T.Description AS Market_Description, 
            T.Datetime AS Market_Datetime, 
            T.UpDown AS Market_UpDown, 
            T.Visable AS Market_Visable, 
            T.CurrencyRatioD AS Market_CurrencyRatioD, 
            T.CurrencyRatioM AS Market_CurrencyRatioM, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Markets AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Parts"><![CDATA[
    SELECT VALUE -- Constructing Parts
        [RoboAccDBModel.Part](T1.Part_ID, T1.Part_Name, T1.Part_Description)
    FROM (
        SELECT 
            T.ID AS Part_ID, 
            T.Name AS Part_Name, 
            T.Description AS Part_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Parts AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ProductGroups"><![CDATA[
    SELECT VALUE -- Constructing ProductGroups
        [RoboAccDBModel.ProductGroup](T1.ProductGroup_ID, T1.ProductGroup_Name, T1.ProductGroup_Description)
    FROM (
        SELECT 
            T.ID AS ProductGroup_ID, 
            T.Name AS ProductGroup_Name, 
            T.Description AS ProductGroup_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ProductGroups AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Productions"><![CDATA[
    SELECT VALUE -- Constructing Productions
        [RoboAccDBModel.Production](T1.Production_ID, T1.Production_ProuductBase, T1.Production_ProductRef, T1.Production_Value, T1.Production_UnitName, T1.Production_UnitRatio)
    FROM (
        SELECT 
            T.ID AS Production_ID, 
            T.ProuductBase AS Production_ProuductBase, 
            T.ProductRef AS Production_ProductRef, 
            T.[Value] AS Production_Value, 
            T.UnitName AS Production_UnitName, 
            T.UnitRatio AS Production_UnitRatio, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Production AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ProductItems"><![CDATA[
    SELECT VALUE -- Constructing ProductItems
        [RoboAccDBModel.ProductItem](T1.ProductItem_ID, T1.ProductItem_FactorRef, T1.ProductItem_ProductRef, T1.ProductItem_Value, T1.ProductItem_Fee, T1.ProductItem_UnitName, T1.ProductItem_UnitRatio, T1.ProductItem_TotalPrice, T1.ProductItem_Profit, T1.ProductItem_SellPrice, T1.ProductItem_DiscountPercent, T1.ProductItem_DiscountPrice, T1.ProductItem_Description, T1.ProductItem_VisitorPercent, T1.ProductItem_TaxPercent, T1.ProductItem_VisitorPrice, T1.ProductItem_TaxPrice, T1.ProductItem_ExpireDate, T1.ProductItem_Row, T1.ProductItem_CompanyName, T1.ProductItem_BaseFee, T1.ProductItem_BaseTotalPrice, T1.ProductItem_BaseProfit, T1.ProductItem_BaseSellPrice, T1.ProductItem_BaseDiscountPrice, T1.ProductItem_BaseVisitorPrice, T1.ProductItem_BaseTaxPrice)
    FROM (
        SELECT 
            T.ID AS ProductItem_ID, 
            T.FactorRef AS ProductItem_FactorRef, 
            T.ProductRef AS ProductItem_ProductRef, 
            T.[Value] AS ProductItem_Value, 
            T.Fee AS ProductItem_Fee, 
            T.UnitName AS ProductItem_UnitName, 
            T.UnitRatio AS ProductItem_UnitRatio, 
            T.TotalPrice AS ProductItem_TotalPrice, 
            T.Profit AS ProductItem_Profit, 
            T.SellPrice AS ProductItem_SellPrice, 
            T.DiscountPercent AS ProductItem_DiscountPercent, 
            T.DiscountPrice AS ProductItem_DiscountPrice, 
            T.Description AS ProductItem_Description, 
            T.VisitorPercent AS ProductItem_VisitorPercent, 
            T.TaxPercent AS ProductItem_TaxPercent, 
            T.VisitorPrice AS ProductItem_VisitorPrice, 
            T.TaxPrice AS ProductItem_TaxPrice, 
            T.ExpireDate AS ProductItem_ExpireDate, 
            T.[Row] AS ProductItem_Row, 
            T.CompanyName AS ProductItem_CompanyName, 
            T.BaseFee AS ProductItem_BaseFee, 
            T.BaseTotalPrice AS ProductItem_BaseTotalPrice, 
            T.BaseProfit AS ProductItem_BaseProfit, 
            T.BaseSellPrice AS ProductItem_BaseSellPrice, 
            T.BaseDiscountPrice AS ProductItem_BaseDiscountPrice, 
            T.BaseVisitorPrice AS ProductItem_BaseVisitorPrice, 
            T.BaseTaxPrice AS ProductItem_BaseTaxPrice, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ProductItems AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ProductSubs"><![CDATA[
    SELECT VALUE -- Constructing ProductSubs
        [RoboAccDBModel.ProductSub](T1.ProductSub_ID, T1.ProductSub_GroupRef, T1.ProductSub_Name, T1.ProductSub_Description)
    FROM (
        SELECT 
            T.ID AS ProductSub_ID, 
            T.GroupRef AS ProductSub_GroupRef, 
            T.Name AS ProductSub_Name, 
            T.Description AS ProductSub_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ProductSubs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ProductUnits"><![CDATA[
    SELECT VALUE -- Constructing ProductUnits
        [RoboAccDBModel.ProductUnit](T1.ProductUnit_ID, T1.ProductUnit_ProductRef, T1.ProductUnit_UnitName, T1.ProductUnit_UnitRatio, T1.ProductUnit_SalePrice, T1.ProductUnit_SalePrice2, T1.ProductUnit_SalePrice3)
    FROM (
        SELECT 
            T.ID AS ProductUnit_ID, 
            T.ProductRef AS ProductUnit_ProductRef, 
            T.UnitName AS ProductUnit_UnitName, 
            T.UnitRatio AS ProductUnit_UnitRatio, 
            T.SalePrice AS ProductUnit_SalePrice, 
            T.SalePrice2 AS ProductUnit_SalePrice2, 
            T.SalePrice3 AS ProductUnit_SalePrice3, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ProductUnits AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Users"><![CDATA[
    SELECT VALUE -- Constructing Users
        [RoboAccDBModel.User](T1.User_ID, T1.User_UserName, T1.User_Password, T1.User_Description, T1.User_Active, T1.User_name, T1.User_email, T1.User_avatar, T1.User_customerId, T1.User_groupRef)
    FROM (
        SELECT 
            T.ID AS User_ID, 
            T.UserName AS User_UserName, 
            T.Password AS User_Password, 
            T.Description AS User_Description, 
            T.Active AS User_Active, 
            T.name AS User_name, 
            T.email AS User_email, 
            T.avatar AS User_avatar, 
            T.customerId AS User_customerId, 
            T.groupRef AS User_groupRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Users AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Assets"><![CDATA[
    SELECT VALUE -- Constructing Assets
        [RoboAccDBModel.Asset](T1.Asset_ID, T1.Asset_SubRef, T1.Asset_Name, T1.Asset_Amount, T1.Asset_Date, T1.Asset_Description, T1.Asset_HaveBuySell, T1.Asset_BuyAmount, T1.Asset_BuyDate, T1.Asset_BuyCustomerRef, T1.Asset_BuyPayAmount, T1.Asset_BuyDescription, T1.Asset_SellAmount, T1.Asset_SellDate, T1.Asset_SellCustomerRef, T1.Asset_SellRecAmount, T1.Asset_SellDescription, T1.Asset_DocID, T1.Asset_DocIDSell, T1.Asset_CurrencyRef, T1.Asset_BuyCurrencyRef, T1.Asset_SellCurrencyRef, T1.Asset_BaseAmount, T1.Asset_BaseBuyAmount, T1.Asset_BaseBuyPayAmount, T1.Asset_BaseSellAmount, T1.Asset_BaseSellRecAmount, T1.Asset_DocIDBuy, T1.Asset_BuyCustomerTransactionRef, T1.Asset_SellCustomerTransactionRef, T1.Asset_AssetTransactionRef, T1.Asset_CurrencyRatioM, T1.Asset_CurrencyRatioD, T1.Asset_BuyCurrencyRatioM, T1.Asset_BuyCurrencyRatioD, T1.Asset_SellCurrencyRatioM, T1.Asset_SellCurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS Asset_ID, 
            T.SubRef AS Asset_SubRef, 
            T.Name AS Asset_Name, 
            T.Amount AS Asset_Amount, 
            T.Date AS Asset_Date, 
            T.Description AS Asset_Description, 
            T.HaveBuySell AS Asset_HaveBuySell, 
            T.BuyAmount AS Asset_BuyAmount, 
            T.BuyDate AS Asset_BuyDate, 
            T.BuyCustomerRef AS Asset_BuyCustomerRef, 
            T.BuyPayAmount AS Asset_BuyPayAmount, 
            T.BuyDescription AS Asset_BuyDescription, 
            T.SellAmount AS Asset_SellAmount, 
            T.SellDate AS Asset_SellDate, 
            T.SellCustomerRef AS Asset_SellCustomerRef, 
            T.SellRecAmount AS Asset_SellRecAmount, 
            T.SellDescription AS Asset_SellDescription, 
            T.DocID AS Asset_DocID, 
            T.DocIDSell AS Asset_DocIDSell, 
            T.CurrencyRef AS Asset_CurrencyRef, 
            T.BuyCurrencyRef AS Asset_BuyCurrencyRef, 
            T.SellCurrencyRef AS Asset_SellCurrencyRef, 
            T.BaseAmount AS Asset_BaseAmount, 
            T.BaseBuyAmount AS Asset_BaseBuyAmount, 
            T.BaseBuyPayAmount AS Asset_BaseBuyPayAmount, 
            T.BaseSellAmount AS Asset_BaseSellAmount, 
            T.BaseSellRecAmount AS Asset_BaseSellRecAmount, 
            T.DocIDBuy AS Asset_DocIDBuy, 
            T.BuyCustomerTransactionRef AS Asset_BuyCustomerTransactionRef, 
            T.SellCustomerTransactionRef AS Asset_SellCustomerTransactionRef, 
            T.AssetTransactionRef AS Asset_AssetTransactionRef, 
            T.CurrencyRatioM AS Asset_CurrencyRatioM, 
            T.CurrencyRatioD AS Asset_CurrencyRatioD, 
            T.BuyCurrencyRatioM AS Asset_BuyCurrencyRatioM, 
            T.BuyCurrencyRatioD AS Asset_BuyCurrencyRatioD, 
            T.SellCurrencyRatioM AS Asset_SellCurrencyRatioM, 
            T.SellCurrencyRatioD AS Asset_SellCurrencyRatioD, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Assets AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.BankAccounts"><![CDATA[
    SELECT VALUE -- Constructing BankAccounts
        [RoboAccDBModel.BankAccount](T1.BankAccount_ID, T1.BankAccount_BankRef, T1.BankAccount_Type, T1.BankAccount_Number, T1.BankAccount_Date, T1.BankAccount_Description, T1.BankAccount_CardNumber, T1.BankAccount_RowVersion, T1.BankAccount_DocID, T1.BankAccount_AccountRef)
    FROM (
        SELECT 
            T.ID AS BankAccount_ID, 
            T.BankRef AS BankAccount_BankRef, 
            T.Type AS BankAccount_Type, 
            T.Number AS BankAccount_Number, 
            T.Date AS BankAccount_Date, 
            T.Description AS BankAccount_Description, 
            T.CardNumber AS BankAccount_CardNumber, 
            T.RowVersion AS BankAccount_RowVersion, 
            T.DocID AS BankAccount_DocID, 
            T.AccountRef AS BankAccount_AccountRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.BankAccounts AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Transactions"><![CDATA[
    SELECT VALUE -- Constructing Transactions
        [RoboAccDBModel.Transaction](T1.Transaction_ID, T1.Transaction_Date, T1.Transaction_TypeRef, T1.Transaction_DocRef, T1.Transaction_CodingRef, T1.Transaction_AccountRef, T1.Transaction_CurrencyRef, T1.Transaction_Creditor, T1.Transaction_Debtor, T1.Transaction_CreditorRemain, T1.Transaction_DebtorRemain, T1.Transaction_RowVersion, T1.Transaction_Description, T1.Transaction_Info, T1.Transaction_IDRef, T1.Transaction_CurrencyRatioD, T1.Transaction_CurrencyRatioM, T1.Transaction_CreditorReserved, T1.Transaction_DebtorReserved)
    FROM (
        SELECT 
            T.ID AS Transaction_ID, 
            T.Date AS Transaction_Date, 
            CAST(T.TypeRef AS [RoboAccDBModel.RefTableEnum]) AS Transaction_TypeRef, 
            T.DocRef AS Transaction_DocRef, 
            T.CodingRef AS Transaction_CodingRef, 
            T.AccountRef AS Transaction_AccountRef, 
            T.CurrencyRef AS Transaction_CurrencyRef, 
            T.Creditor AS Transaction_Creditor, 
            T.Debtor AS Transaction_Debtor, 
            T.CreditorRemain AS Transaction_CreditorRemain, 
            T.DebtorRemain AS Transaction_DebtorRemain, 
            T.RowVersion AS Transaction_RowVersion, 
            T.Description AS Transaction_Description, 
            T.Info AS Transaction_Info, 
            T.IDRef AS Transaction_IDRef, 
            T.CurrencyRatioD AS Transaction_CurrencyRatioD, 
            T.CurrencyRatioM AS Transaction_CurrencyRatioM, 
            T.CreditorReserved AS Transaction_CreditorReserved, 
            T.DebtorReserved AS Transaction_DebtorReserved, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Transaction AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ChequeRecs"><![CDATA[
    SELECT VALUE -- Constructing ChequeRecs
        [RoboAccDBModel.ChequeRec](T1.ChequeRec_ID, T1.ChequeRec_Serial, T1.ChequeRec_ExportDate, T1.ChequeRec_ExpireyDate, T1.ChequeRec_Amount, T1.ChequeRec_BankName, T1.ChequeRec_CustomerRef, T1.ChequeRec_LastActRef, T1.ChequeRec_Description, T1.ChequeRec_ToPerson, T1.ChequeRec_AccountNumber, T1.ChequeRec_AccountOwner, T1.ChequeRec_DateLastAct, T1.ChequeRec_VagozarbeBank, T1.ChequeRec_VagozarbeShakhs, T1.ChequeRec_CurrentYear, T1.ChequeRec_CashBoxRef, T1.ChequeRec_DocID, T1.ChequeRec_DocID2, T1.ChequeRec_SayadNo, T1.ChequeRec_SystemState)
    FROM (
        SELECT 
            T.ID AS ChequeRec_ID, 
            T.Serial AS ChequeRec_Serial, 
            T.ExportDate AS ChequeRec_ExportDate, 
            T.ExpireyDate AS ChequeRec_ExpireyDate, 
            T.Amount AS ChequeRec_Amount, 
            T.BankName AS ChequeRec_BankName, 
            T.CustomerRef AS ChequeRec_CustomerRef, 
            T.LastActRef AS ChequeRec_LastActRef, 
            T.Description AS ChequeRec_Description, 
            T.ToPerson AS ChequeRec_ToPerson, 
            T.AccountNumber AS ChequeRec_AccountNumber, 
            T.AccountOwner AS ChequeRec_AccountOwner, 
            T.DateLastAct AS ChequeRec_DateLastAct, 
            T.VagozarbeBank AS ChequeRec_VagozarbeBank, 
            T.VagozarbeShakhs AS ChequeRec_VagozarbeShakhs, 
            T.CurrentYear AS ChequeRec_CurrentYear, 
            T.CashBoxRef AS ChequeRec_CashBoxRef, 
            T.DocID AS ChequeRec_DocID, 
            T.DocID2 AS ChequeRec_DocID2, 
            T.SayadNo AS ChequeRec_SayadNo, 
            T.SystemState AS ChequeRec_SystemState, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ChequeRecs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ChequePays"><![CDATA[
    SELECT VALUE -- Constructing ChequePays
        [RoboAccDBModel.ChequePay](T1.ChequePay_ID, T1.ChequePay_Serial, T1.ChequePay_ExportDate, T1.ChequePay_ExpireyDate, T1.ChequePay_Amount, T1.ChequePay_AccountRef, T1.ChequePay_CustomerRef, T1.ChequePay_LastActRef, T1.ChequePay_Description, T1.ChequePay_ToPerson, T1.ChequePay_DateLastAct, T1.ChequePay_CurrentYear, T1.ChequePay_DocID, T1.ChequePay_SayadNo, T1.ChequePay_SystemState)
    FROM (
        SELECT 
            T.ID AS ChequePay_ID, 
            T.Serial AS ChequePay_Serial, 
            T.ExportDate AS ChequePay_ExportDate, 
            T.ExpireyDate AS ChequePay_ExpireyDate, 
            T.Amount AS ChequePay_Amount, 
            T.AccountRef AS ChequePay_AccountRef, 
            T.CustomerRef AS ChequePay_CustomerRef, 
            T.LastActRef AS ChequePay_LastActRef, 
            T.Description AS ChequePay_Description, 
            T.ToPerson AS ChequePay_ToPerson, 
            T.DateLastAct AS ChequePay_DateLastAct, 
            T.CurrentYear AS ChequePay_CurrentYear, 
            T.DocID AS ChequePay_DocID, 
            T.SayadNo AS ChequePay_SayadNo, 
            T.SystemState AS ChequePay_SystemState, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ChequePays AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.FishPays"><![CDATA[
    SELECT VALUE -- Constructing FishPays
        [RoboAccDBModel.FishPay](T1.FishPay_ID, T1.FishPay_Serial, T1.FishPay_Date, T1.FishPay_BankName, T1.FishPay_Amount, T1.FishPay_CustomerRef, T1.FishPay_Description, T1.FishPay_AccountNumber, T1.FishPay_CashBoxRef, T1.FishPay_DocID)
    FROM (
        SELECT 
            T.ID AS FishPay_ID, 
            T.Serial AS FishPay_Serial, 
            T.Date AS FishPay_Date, 
            T.BankName AS FishPay_BankName, 
            T.Amount AS FishPay_Amount, 
            T.CustomerRef AS FishPay_CustomerRef, 
            T.Description AS FishPay_Description, 
            T.AccountNumber AS FishPay_AccountNumber, 
            T.CashBoxRef AS FishPay_CashBoxRef, 
            T.DocID AS FishPay_DocID, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.FishPays AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.FishRecs"><![CDATA[
    SELECT VALUE -- Constructing FishRecs
        [RoboAccDBModel.FishRec](T1.FishRec_ID, T1.FishRec_Serial, T1.FishRec_Date, T1.FishRec_Description, T1.FishRec_Amount, T1.FishRec_CustomerRef, T1.FishRec_AccountRef, T1.FishRec_Type, T1.FishRec_DocID)
    FROM (
        SELECT 
            T.ID AS FishRec_ID, 
            T.Serial AS FishRec_Serial, 
            T.Date AS FishRec_Date, 
            T.Description AS FishRec_Description, 
            T.Amount AS FishRec_Amount, 
            T.CustomerRef AS FishRec_CustomerRef, 
            T.AccountRef AS FishRec_AccountRef, 
            CAST(T.Type AS [RoboAccDBModel.RefTableEnum]) AS FishRec_Type, 
            T.DocID AS FishRec_DocID, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.FishRecs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.BankMovements"><![CDATA[
    SELECT VALUE -- Constructing BankMovements
        [RoboAccDBModel.BankMovement](T1.BankMovement_ID, T1.BankMovement_SrcAccountRef, T1.BankMovement_DesAccountRef, T1.BankMovement_Date, T1.BankMovement_Amount, T1.BankMovement_Description, T1.BankMovement_DocID, T1.BankMovement_BankAccountSrcTransactionRef, T1.BankMovement_BankAccountDesTransactionRef)
    FROM (
        SELECT 
            T.ID AS BankMovement_ID, 
            T.SrcAccountRef AS BankMovement_SrcAccountRef, 
            T.DesAccountRef AS BankMovement_DesAccountRef, 
            T.Date AS BankMovement_Date, 
            T.Amount AS BankMovement_Amount, 
            T.Description AS BankMovement_Description, 
            T.DocID AS BankMovement_DocID, 
            T.BankAccountSrcTransactionRef AS BankMovement_BankAccountSrcTransactionRef, 
            T.BankAccountDesTransactionRef AS BankMovement_BankAccountDesTransactionRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.BankMovements AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.BankActs"><![CDATA[
    SELECT VALUE -- Constructing BankActs
        [RoboAccDBModel.BankAct](T1.BankAct_ID, T1.BankAct_AccountRef, T1.BankAct_Date, T1.BankAct_Amount, T1.BankAct_InOrOut, T1.BankAct_Description, T1.BankAct_CashBoxRef, T1.BankAct_DocID, T1.BankAct_CashBoxTransactionRef, T1.BankAct_BankAccountTransactionRef)
    FROM (
        SELECT 
            T.ID AS BankAct_ID, 
            T.AccountRef AS BankAct_AccountRef, 
            T.Date AS BankAct_Date, 
            T.Amount AS BankAct_Amount, 
            T.InOrOut AS BankAct_InOrOut, 
            T.Description AS BankAct_Description, 
            T.CashBoxRef AS BankAct_CashBoxRef, 
            T.DocID AS BankAct_DocID, 
            T.CashBoxTransactionRef AS BankAct_CashBoxTransactionRef, 
            T.BankAccountTransactionRef AS BankAct_BankAccountTransactionRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.BankActs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Capitals"><![CDATA[
    SELECT VALUE -- Constructing Capitals
        [RoboAccDBModel.Capital](T1.Capital_ID, T1.Capital_Who, T1.Capital_Amount, T1.Capital_Date, T1.Capital_Description, T1.Capital_CapitalActionRef, T1.Capital_AccountRef, T1.Capital_CurrentYear, T1.Capital_CashBoxRef, T1.Capital_DocID, T1.Capital_CapitalTransactionRef, T1.Capital_CashBoxOrBankAccountTransactionRef)
    FROM (
        SELECT 
            T.ID AS Capital_ID, 
            T.Who AS Capital_Who, 
            T.Amount AS Capital_Amount, 
            T.Date AS Capital_Date, 
            T.Description AS Capital_Description, 
            T.CapitalActionRef AS Capital_CapitalActionRef, 
            T.AccountRef AS Capital_AccountRef, 
            T.CurrentYear AS Capital_CurrentYear, 
            T.CashBoxRef AS Capital_CashBoxRef, 
            T.DocID AS Capital_DocID, 
            T.CapitalTransactionRef AS Capital_CapitalTransactionRef, 
            T.CashBoxOrBankAccountTransactionRef AS Capital_CashBoxOrBankAccountTransactionRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Capitals AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ChequeRecActs"><![CDATA[
    SELECT VALUE -- Constructing ChequeRecActs
        [RoboAccDBModel.ChequeRecAct](T1.ChequeRecAct_ID, T1.ChequeRecAct_ChequeRecRef, T1.ChequeRecAct_ChequeActRef, T1.ChequeRecAct_CustomerRef, T1.ChequeRecAct_AccountRef, T1.ChequeRecAct_Date, T1.ChequeRecAct_Description)
    FROM (
        SELECT 
            T.ID AS ChequeRecAct_ID, 
            T.ChequeRecRef AS ChequeRecAct_ChequeRecRef, 
            T.ChequeActRef AS ChequeRecAct_ChequeActRef, 
            T.CustomerRef AS ChequeRecAct_CustomerRef, 
            T.AccountRef AS ChequeRecAct_AccountRef, 
            T.Date AS ChequeRecAct_Date, 
            T.Description AS ChequeRecAct_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ChequeRecActs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Wastages"><![CDATA[
    SELECT VALUE -- Constructing Wastages
        [RoboAccDBModel.Wastage](T1.Wastage_ID, T1.Wastage_ProductRef, T1.Wastage_Value, T1.Wastage_Date, T1.Wastage_Description, T1.Wastage_Type, T1.Wastage_Amount, T1.Wastage_RefID, T1.Wastage_UnitName, T1.Wastage_UnitRatio, T1.Wastage_DocID, T1.Wastage_CurrencyRef, T1.Wastage_BaseAmount, T1.Wastage_TypeDes, T1.Wastage_CurrencyRatioM, T1.Wastage_CurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS Wastage_ID, 
            T.ProductRef AS Wastage_ProductRef, 
            T.[Value] AS Wastage_Value, 
            T.Date AS Wastage_Date, 
            T.Description AS Wastage_Description, 
            CAST(T.Type AS [RoboAccDBModel.RefTableEnum]) AS Wastage_Type, 
            T.Amount AS Wastage_Amount, 
            T.RefID AS Wastage_RefID, 
            T.UnitName AS Wastage_UnitName, 
            T.UnitRatio AS Wastage_UnitRatio, 
            T.DocID AS Wastage_DocID, 
            T.CurrencyRef AS Wastage_CurrencyRef, 
            T.BaseAmount AS Wastage_BaseAmount, 
            T.TypeDes AS Wastage_TypeDes, 
            T.CurrencyRatioM AS Wastage_CurrencyRatioM, 
            T.CurrencyRatioD AS Wastage_CurrencyRatioD, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Wastages AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ProductCardexes"><![CDATA[
    SELECT VALUE -- Constructing ProductCardexes
        [RoboAccDBModel.ProductCardex](T1.ProductCardex_ID, T1.ProductCardex_Date, T1.ProductCardex_RefTable, T1.ProductCardex_RefID, T1.ProductCardex_ProductRef, T1.ProductCardex_IncDec, T1.ProductCardex_Value, T1.ProductCardex_Fee, T1.ProductCardex_Sum, T1.ProductCardex_ValueR, T1.ProductCardex_FeeR, T1.ProductCardex_SumR, T1.ProductCardex_ProductItemRef, T1.ProductCardex_CurrencyRef, T1.ProductCardex_CurrencyRatioM, T1.ProductCardex_CurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS ProductCardex_ID, 
            T.Date AS ProductCardex_Date, 
            CAST(T.RefTable AS [RoboAccDBModel.RefTableEnum]) AS ProductCardex_RefTable, 
            T.RefID AS ProductCardex_RefID, 
            T.ProductRef AS ProductCardex_ProductRef, 
            T.IncDec AS ProductCardex_IncDec, 
            T.[Value] AS ProductCardex_Value, 
            T.Fee AS ProductCardex_Fee, 
            T.Sum AS ProductCardex_Sum, 
            T.ValueR AS ProductCardex_ValueR, 
            T.FeeR AS ProductCardex_FeeR, 
            T.SumR AS ProductCardex_SumR, 
            T.ProductItemRef AS ProductCardex_ProductItemRef, 
            T.CurrencyRef AS ProductCardex_CurrencyRef, 
            T.CurrencyRatioM AS ProductCardex_CurrencyRatioM, 
            T.CurrencyRatioD AS ProductCardex_CurrencyRatioD, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ProductCardex AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Places"><![CDATA[
    SELECT VALUE -- Constructing Places
        [RoboAccDBModel.Place](T1.Place_ID, T1.Place_Name, T1.Place_IsParent, T1.Place_ParentID, T1.Place_OrderNumber, T1.Place_ChildCount, T1.Place_Description)
    FROM (
        SELECT 
            T.ID AS Place_ID, 
            T.Name AS Place_Name, 
            T.IsParent AS Place_IsParent, 
            T.ParentID AS Place_ParentID, 
            T.OrderNumber AS Place_OrderNumber, 
            T.ChildCount AS Place_ChildCount, 
            T.Description AS Place_Description, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Places AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Products"><![CDATA[
    SELECT VALUE -- Constructing Products
        [RoboAccDBModel.Product](T1.Product_ID, T1.Product_SubRef, T1.Product_Name, T1.Product_Code, T1.Product_property3, T1.Product_property1, T1.Product_property2, T1.Product_StoreName, T1.Product_Shelf, T1.Product_Floor, T1.Product_Row, T1.Product_Description, T1.Product_BarCode, T1.Product_Date, T1.Product_picture, T1.Product_bench, T1.Product_OrderPoint, T1.Product_OrderPointFlag, T1.Product_ExpireDate, T1.Product_Value, T1.Product_FirstValue, T1.Product_PurchasePrice, T1.Product_LastPurchasePrice, T1.Product_FirstPurchasePrice, T1.Product_SalePrice, T1.Product_SalePrice2, T1.Product_SalePrice3, T1.Product_Rank, T1.Product_Active, T1.Product_Production, T1.Product_Type, T1.Product_UnitName, T1.Product_UnitRatio, T1.Product_RowVersion, T1.Product_ProfitPercent, T1.Product_LossPercent, T1.Product_CurPriceRatioM, T1.Product_CurPriceRatioD, T1.Product_CurIDCardex, T1.Product_CurExpireDate, T1.Product_CurPrice, T1.Product_CurValue, T1.Product_PriceType, T1.Product_VisitorPercent, T1.Product_TaxPercent, T1.Product_ChangedPrice, T1.Product_ChangedPriceDate, T1.Product_Discount, T1.Product_DiscountEndDate, T1.Product_SellCurrencyRef, T1.Product_LastIDCardexInc, T1.Product_ChangedPriceMode, T1.Product_BuyCurrencyRef, T1.Product_SaleInApp, T1.Product_Check, T1.Product_MoadianCode, T1.Product_ReservedValue)
    FROM (
        SELECT 
            T.ID AS Product_ID, 
            T.SubRef AS Product_SubRef, 
            T.Name AS Product_Name, 
            T.Code AS Product_Code, 
            T.property3 AS Product_property3, 
            T.property1 AS Product_property1, 
            T.property2 AS Product_property2, 
            T.StoreName AS Product_StoreName, 
            T.Shelf AS Product_Shelf, 
            T.Floor AS Product_Floor, 
            T.[Row] AS Product_Row, 
            T.Description AS Product_Description, 
            T.BarCode AS Product_BarCode, 
            T.Date AS Product_Date, 
            T.picture AS Product_picture, 
            T.bench AS Product_bench, 
            T.OrderPoint AS Product_OrderPoint, 
            T.OrderPointFlag AS Product_OrderPointFlag, 
            T.ExpireDate AS Product_ExpireDate, 
            T.[Value] AS Product_Value, 
            T.FirstValue AS Product_FirstValue, 
            T.PurchasePrice AS Product_PurchasePrice, 
            T.LastPurchasePrice AS Product_LastPurchasePrice, 
            T.FirstPurchasePrice AS Product_FirstPurchasePrice, 
            T.SalePrice AS Product_SalePrice, 
            T.SalePrice2 AS Product_SalePrice2, 
            T.SalePrice3 AS Product_SalePrice3, 
            T.Rank AS Product_Rank, 
            T.Active AS Product_Active, 
            T.Production AS Product_Production, 
            T.Type AS Product_Type, 
            T.UnitName AS Product_UnitName, 
            T.UnitRatio AS Product_UnitRatio, 
            T.RowVersion AS Product_RowVersion, 
            T.ProfitPercent AS Product_ProfitPercent, 
            T.LossPercent AS Product_LossPercent, 
            T.CurPriceRatioM AS Product_CurPriceRatioM, 
            T.CurPriceRatioD AS Product_CurPriceRatioD, 
            T.CurIDCardex AS Product_CurIDCardex, 
            T.CurExpireDate AS Product_CurExpireDate, 
            T.CurPrice AS Product_CurPrice, 
            T.CurValue AS Product_CurValue, 
            T.PriceType AS Product_PriceType, 
            T.VisitorPercent AS Product_VisitorPercent, 
            T.TaxPercent AS Product_TaxPercent, 
            T.ChangedPrice AS Product_ChangedPrice, 
            T.ChangedPriceDate AS Product_ChangedPriceDate, 
            T.Discount AS Product_Discount, 
            T.DiscountEndDate AS Product_DiscountEndDate, 
            T.SellCurrencyRef AS Product_SellCurrencyRef, 
            T.LastIDCardexInc AS Product_LastIDCardexInc, 
            T.ChangedPriceMode AS Product_ChangedPriceMode, 
            T.BuyCurrencyRef AS Product_BuyCurrencyRef, 
            T.SaleInApp AS Product_SaleInApp, 
            T.Check AS Product_Check, 
            T.MoadianCode AS Product_MoadianCode, 
            T.ReservedValue AS Product_ReservedValue, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Products AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.TypeRefs"><![CDATA[
    SELECT VALUE -- Constructing TypeRefs
        [RoboAccDBModel.TypeRef](T1.TypeRef_ID, T1.TypeRef_Name, T1.TypeRef_EN, T1.TypeRef_AR, T1.TypeRef_IQ, T1.TypeRef_IR)
    FROM (
        SELECT 
            CAST(T.ID AS [RoboAccDBModel.RefTableEnum]) AS TypeRef_ID, 
            T.Name AS TypeRef_Name, 
            T.EN AS TypeRef_EN, 
            T.AR AS TypeRef_AR, 
            T.IQ AS TypeRef_IQ, 
            T.IR AS TypeRef_IR, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.TypeRefs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Factors"><![CDATA[
    SELECT VALUE -- Constructing Factors
        [RoboAccDBModel.Factor](T1.Factor_ID, T1.Factor_Date, T1.Factor_CustomerRef, T1.Factor_TypeRef, T1.Factor_ProductSumPrice, T1.Factor_DiscountPercent, T1.Factor_DiscountPrice, T1.Factor_RealSum, T1.Factor_Profit, T1.Factor_Description, T1.Factor_DeductionsSum, T1.Factor_IsTemp, T1.Factor_DefrayDate, T1.Factor_AdditionsSum, T1.Factor_OrginalFactorID, T1.Factor_RecPayAmount, T1.Factor_Tax, T1.Factor_RemainAmount, T1.Factor_Serial, T1.Factor_Settlement, T1.Factor_VisitorRef, T1.Factor_VisitorAmount, T1.Factor_Attachment, T1.Factor_ItemGroupRef, T1.Factor_OwnerRef, T1.Factor_Flag, T1.Factor_VisitorPercent, T1.Factor_TaxPercent, T1.Factor_DocID, T1.Factor_CurrencyRef, T1.Factor_CurrencyRatioM, T1.Factor_BaseProductSumPrice, T1.Factor_BaseDiscountPrice, T1.Factor_BaseRealSum, T1.Factor_BaseProfit, T1.Factor_BaseDeductionsSum, T1.Factor_BaseAdditionsSum, T1.Factor_BaseRecPayAmount, T1.Factor_BaseTax, T1.Factor_BaseRemainAmount, T1.Factor_BaseVisitorAmount, T1.Factor_CurrencyRatioD, T1.Factor_MoadianSend)
    FROM (
        SELECT 
            T.ID AS Factor_ID, 
            T.Date AS Factor_Date, 
            T.CustomerRef AS Factor_CustomerRef, 
            CAST(T.TypeRef AS [RoboAccDBModel.RefTableEnum]) AS Factor_TypeRef, 
            T.ProductSumPrice AS Factor_ProductSumPrice, 
            T.DiscountPercent AS Factor_DiscountPercent, 
            T.DiscountPrice AS Factor_DiscountPrice, 
            T.RealSum AS Factor_RealSum, 
            T.Profit AS Factor_Profit, 
            T.Description AS Factor_Description, 
            T.DeductionsSum AS Factor_DeductionsSum, 
            T.IsTemp AS Factor_IsTemp, 
            T.DefrayDate AS Factor_DefrayDate, 
            T.AdditionsSum AS Factor_AdditionsSum, 
            T.OrginalFactorID AS Factor_OrginalFactorID, 
            T.RecPayAmount AS Factor_RecPayAmount, 
            T.Tax AS Factor_Tax, 
            T.RemainAmount AS Factor_RemainAmount, 
            T.Serial AS Factor_Serial, 
            T.Settlement AS Factor_Settlement, 
            T.VisitorRef AS Factor_VisitorRef, 
            T.VisitorAmount AS Factor_VisitorAmount, 
            T.Attachment AS Factor_Attachment, 
            T.ItemGroupRef AS Factor_ItemGroupRef, 
            T.OwnerRef AS Factor_OwnerRef, 
            T.Flag AS Factor_Flag, 
            T.VisitorPercent AS Factor_VisitorPercent, 
            T.TaxPercent AS Factor_TaxPercent, 
            T.DocID AS Factor_DocID, 
            T.CurrencyRef AS Factor_CurrencyRef, 
            T.CurrencyRatioM AS Factor_CurrencyRatioM, 
            T.BaseProductSumPrice AS Factor_BaseProductSumPrice, 
            T.BaseDiscountPrice AS Factor_BaseDiscountPrice, 
            T.BaseRealSum AS Factor_BaseRealSum, 
            T.BaseProfit AS Factor_BaseProfit, 
            T.BaseDeductionsSum AS Factor_BaseDeductionsSum, 
            T.BaseAdditionsSum AS Factor_BaseAdditionsSum, 
            T.BaseRecPayAmount AS Factor_BaseRecPayAmount, 
            T.BaseTax AS Factor_BaseTax, 
            T.BaseRemainAmount AS Factor_BaseRemainAmount, 
            T.BaseVisitorAmount AS Factor_BaseVisitorAmount, 
            T.CurrencyRatioD AS Factor_CurrencyRatioD, 
            T.MoadianSend AS Factor_MoadianSend, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Factors AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Cashs"><![CDATA[
    SELECT VALUE -- Constructing Cashs
        [RoboAccDBModel.Cash](T1.Cash_ID, T1.Cash_Description, T1.Cash_Date, T1.Cash_Amount, T1.Cash_CustomerRef, T1.Cash_type, T1.Cash_CashboxRef, T1.Cash_DocID, T1.Cash_BaseAmount, T1.Cash_VisitorRef, T1.Cash_Recived, T1.Cash_CurrencyRef, T1.Cash_CurrencyRatioM, T1.Cash_CurrencyRatioD, T1.Cash_OwnerRef)
    FROM (
        SELECT 
            T.ID AS Cash_ID, 
            T.Description AS Cash_Description, 
            T.Date AS Cash_Date, 
            T.Amount AS Cash_Amount, 
            T.CustomerRef AS Cash_CustomerRef, 
            T.type AS Cash_type, 
            T.CashboxRef AS Cash_CashboxRef, 
            T.DocID AS Cash_DocID, 
            T.BaseAmount AS Cash_BaseAmount, 
            T.VisitorRef AS Cash_VisitorRef, 
            T.Recived AS Cash_Recived, 
            T.CurrencyRef AS Cash_CurrencyRef, 
            T.CurrencyRatioM AS Cash_CurrencyRatioM, 
            T.CurrencyRatioD AS Cash_CurrencyRatioD, 
            T.OwnerRef AS Cash_OwnerRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Cashs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.InOuts"><![CDATA[
    SELECT VALUE -- Constructing InOuts
        [RoboAccDBModel.InOut](T1.InOut_ID, T1.InOut_SubRef, T1.InOut_Date, T1.InOut_Amount, T1.InOut_Description, T1.InOut_type, T1.InOut_RecPayAmount, T1.InOut_CustomerRef, T1.InOut_DocID, T1.InOut_DocIDIn, T1.InOut_ServiceRef, T1.InOut_Count, T1.InOut_CurrencyRef, T1.InOut_CurrencyRatioM, T1.InOut_BaseAmount, T1.InOut_BaseRecPayAmount, T1.InOut_CashID, T1.InOut_CurrencyRatioD)
    FROM (
        SELECT 
            T.ID AS InOut_ID, 
            T.SubRef AS InOut_SubRef, 
            T.Date AS InOut_Date, 
            T.Amount AS InOut_Amount, 
            T.Description AS InOut_Description, 
            T.type AS InOut_type, 
            T.RecPayAmount AS InOut_RecPayAmount, 
            T.CustomerRef AS InOut_CustomerRef, 
            T.DocID AS InOut_DocID, 
            T.DocIDIn AS InOut_DocIDIn, 
            T.ServiceRef AS InOut_ServiceRef, 
            T.Count AS InOut_Count, 
            T.CurrencyRef AS InOut_CurrencyRef, 
            T.CurrencyRatioM AS InOut_CurrencyRatioM, 
            T.BaseAmount AS InOut_BaseAmount, 
            T.BaseRecPayAmount AS InOut_BaseRecPayAmount, 
            T.CashID AS InOut_CashID, 
            T.CurrencyRatioD AS InOut_CurrencyRatioD, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.InOuts AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Customers"><![CDATA[
    SELECT VALUE -- Constructing Customers
        [RoboAccDBModel.Customer](T1.Customer_ID, T1.Customer_Code, T1.Customer_Name, T1.Customer_Description, T1.Customer_Tel, T1.Customer_Mobile, T1.Customer_Fax, T1.Customer_Address, T1.Customer_Pic, T1.Customer_UntoldLastDate, T1.Customer_Email, T1.Customer_DateCreate, T1.Customer_Active, T1.Customer_NationalCode, T1.Customer_PostCode, T1.Customer_EconomicCode, T1.Customer_Province, T1.Customer_TownShip, T1.Customer_Town, T1.Customer_ItemGroupRef, T1.Customer_Type, T1.Customer_RowVersion, T1.Customer_PerDayFactor, T1.Customer_SumBuy, T1.Customer_VisitorPercent, T1.Customer_Credit, T1.Customer_DocID, T1.Customer_Date, T1.Customer_TypeRef, T1.Customer_VisitorRef, T1.Customer_AccountRef, T1.Customer_Latitudes, T1.Customer_Longitudes, T1.Customer_position, T1.Customer_addresses, T1.Customer_PlacesRef)
    FROM (
        SELECT 
            T.ID AS Customer_ID, 
            T.Code AS Customer_Code, 
            T.Name AS Customer_Name, 
            T.Description AS Customer_Description, 
            T.Tel AS Customer_Tel, 
            T.Mobile AS Customer_Mobile, 
            T.Fax AS Customer_Fax, 
            T.Address AS Customer_Address, 
            T.Pic AS Customer_Pic, 
            T.UntoldLastDate AS Customer_UntoldLastDate, 
            T.Email AS Customer_Email, 
            T.DateCreate AS Customer_DateCreate, 
            T.Active AS Customer_Active, 
            T.NationalCode AS Customer_NationalCode, 
            T.PostCode AS Customer_PostCode, 
            T.EconomicCode AS Customer_EconomicCode, 
            T.Province AS Customer_Province, 
            T.TownShip AS Customer_TownShip, 
            T.Town AS Customer_Town, 
            T.ItemGroupRef AS Customer_ItemGroupRef, 
            T.Type AS Customer_Type, 
            T.RowVersion AS Customer_RowVersion, 
            T.PerDayFactor AS Customer_PerDayFactor, 
            T.SumBuy AS Customer_SumBuy, 
            T.VisitorPercent AS Customer_VisitorPercent, 
            T.Credit AS Customer_Credit, 
            T.DocID AS Customer_DocID, 
            T.Date AS Customer_Date, 
            T.TypeRef AS Customer_TypeRef, 
            T.VisitorRef AS Customer_VisitorRef, 
            T.AccountRef AS Customer_AccountRef, 
            T.Latitudes AS Customer_Latitudes, 
            T.Longitudes AS Customer_Longitudes, 
            T.position AS Customer_position, 
            T.addresses AS Customer_addresses, 
            T.PlacesRef AS Customer_PlacesRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Customers AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.CashBoxes"><![CDATA[
    SELECT VALUE -- Constructing CashBoxes
        [RoboAccDBModel.CashBox](T1.CashBox_ID, T1.CashBox_Name, T1.CashBox_Description, T1.CashBox_Date, T1.CashBox_Type, T1.CashBox_RowVersion, T1.CashBox_DocID, T1.CashBox_AccountRef, T1.CashBox_CurrencyRef)
    FROM (
        SELECT 
            T.ID AS CashBox_ID, 
            T.Name AS CashBox_Name, 
            T.Description AS CashBox_Description, 
            T.Date AS CashBox_Date, 
            T.Type AS CashBox_Type, 
            T.RowVersion AS CashBox_RowVersion, 
            T.DocID AS CashBox_DocID, 
            T.AccountRef AS CashBox_AccountRef, 
            T.CurrencyRef AS CashBox_CurrencyRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.CashBox AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Cache"><![CDATA[
    SELECT VALUE -- Constructing Cache
        [RoboAccDBModel.Store.Cache](T1.Cache_name, T1.Cache_value)
    FROM (
        SELECT 
            T.name AS Cache_name, 
            T.[value] AS Cache_value, 
            True AS _from0
        FROM DataModelEntities.Caches AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Caches"><![CDATA[
    SELECT VALUE -- Constructing Caches
        [RoboAccDBModel.Cache](T1.Cache_name, T1.Cache_value)
    FROM (
        SELECT 
            T.name AS Cache_name, 
            T.[value] AS Cache_value, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Cache AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.InformationHistory"><![CDATA[
    SELECT VALUE -- Constructing InformationHistory
        [RoboAccDBModel.Store.InformationHistory](T1.InformationHistory_Day, T1.InformationHistory_Sell, T1.InformationHistory_Profit, T1.InformationHistory_Recive, T1.InformationHistory_Income, T1.InformationHistory_Outgo, T1.InformationHistory_RowVersion)
    FROM (
        SELECT 
            T.Day AS InformationHistory_Day, 
            T.Sell AS InformationHistory_Sell, 
            T.Profit AS InformationHistory_Profit, 
            T.Recive AS InformationHistory_Recive, 
            T.Income AS InformationHistory_Income, 
            T.Outgo AS InformationHistory_Outgo, 
            T.RowVersion AS InformationHistory_RowVersion, 
            True AS _from0
        FROM DataModelEntities.InformationHistories AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.InformationHistories"><![CDATA[
    SELECT VALUE -- Constructing InformationHistories
        [RoboAccDBModel.InformationHistory](T1.InformationHistory_Day, T1.InformationHistory_Sell, T1.InformationHistory_Profit, T1.InformationHistory_Recive, T1.InformationHistory_Income, T1.InformationHistory_Outgo, T1.InformationHistory_RowVersion)
    FROM (
        SELECT 
            T.Day AS InformationHistory_Day, 
            T.Sell AS InformationHistory_Sell, 
            T.Profit AS InformationHistory_Profit, 
            T.Recive AS InformationHistory_Recive, 
            T.Income AS InformationHistory_Income, 
            T.Outgo AS InformationHistory_Outgo, 
            T.RowVersion AS InformationHistory_RowVersion, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.InformationHistory AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.log"><![CDATA[
    SELECT VALUE -- Constructing log
        [RoboAccDBModel.Store.log](T1.log_id, T1.log_titel, T1.log_productRef)
    FROM (
        SELECT 
            T.id AS log_id, 
            T.titel AS log_titel, 
            T.productRef AS log_productRef, 
            True AS _from0
        FROM DataModelEntities.logs AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.logs"><![CDATA[
    SELECT VALUE -- Constructing logs
        [RoboAccDBModel.log](T1.log_id, T1.log_titel, T1.log_productRef)
    FROM (
        SELECT 
            T.id AS log_id, 
            T.titel AS log_titel, 
            T.productRef AS log_productRef, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.log AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Matching"><![CDATA[
    SELECT VALUE -- Constructing Matching
        [RoboAccDBModel.Store.Matching](T1.Matching_ID, T1.Matching_ProductRef, T1.Matching_BuyDate, T1.Matching_SellDate, T1.Matching_BuyRef, T1.Matching_SellRef, T1.Matching_Matched, T1.Matching_BuyRemain, T1.Matching_SellRemain, T1.Matching_Fee)
    FROM (
        SELECT 
            T.ID AS Matching_ID, 
            T.ProductRef AS Matching_ProductRef, 
            T.BuyDate AS Matching_BuyDate, 
            T.SellDate AS Matching_SellDate, 
            T.BuyRef AS Matching_BuyRef, 
            T.SellRef AS Matching_SellRef, 
            T.Matched AS Matching_Matched, 
            T.BuyRemain AS Matching_BuyRemain, 
            T.SellRemain AS Matching_SellRemain, 
            T.Fee AS Matching_Fee, 
            True AS _from0
        FROM DataModelEntities.Matchings AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Matchings"><![CDATA[
    SELECT VALUE -- Constructing Matchings
        [RoboAccDBModel.Matching](T1.Matching_ID, T1.Matching_ProductRef, T1.Matching_BuyDate, T1.Matching_SellDate, T1.Matching_BuyRef, T1.Matching_SellRef, T1.Matching_Matched, T1.Matching_BuyRemain, T1.Matching_SellRemain, T1.Matching_Fee)
    FROM (
        SELECT 
            T.ID AS Matching_ID, 
            T.ProductRef AS Matching_ProductRef, 
            T.BuyDate AS Matching_BuyDate, 
            T.SellDate AS Matching_SellDate, 
            T.BuyRef AS Matching_BuyRef, 
            T.SellRef AS Matching_SellRef, 
            T.Matched AS Matching_Matched, 
            T.BuyRemain AS Matching_BuyRemain, 
            T.SellRemain AS Matching_SellRemain, 
            T.Fee AS Matching_Fee, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Matching AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.NoteBook"><![CDATA[
    SELECT VALUE -- Constructing NoteBook
        [RoboAccDBModel.Store.NoteBook](T1.NoteBook_ID, T1.NoteBook_Description, T1.NoteBook_Date, T1.NoteBook_Title, T1.NoteBook_CreateDate)
    FROM (
        SELECT 
            T.ID AS NoteBook_ID, 
            T.Description AS NoteBook_Description, 
            T.Date AS NoteBook_Date, 
            T.Title AS NoteBook_Title, 
            T.CreateDate AS NoteBook_CreateDate, 
            True AS _from0
        FROM DataModelEntities.NoteBooks AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.NoteBooks"><![CDATA[
    SELECT VALUE -- Constructing NoteBooks
        [RoboAccDBModel.NoteBook](T1.NoteBook_ID, T1.NoteBook_Description, T1.NoteBook_Date, T1.NoteBook_Title, T1.NoteBook_CreateDate)
    FROM (
        SELECT 
            T.ID AS NoteBook_ID, 
            T.Description AS NoteBook_Description, 
            T.Date AS NoteBook_Date, 
            T.Title AS NoteBook_Title, 
            T.CreateDate AS NoteBook_CreateDate, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.NoteBook AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.PhoneBooks"><![CDATA[
    SELECT VALUE -- Constructing PhoneBooks
        [RoboAccDBModel.Store.PhoneBooks](T1.PhoneBooks_ID, T1.PhoneBooks_Name, T1.PhoneBooks_Phone, T1.PhoneBooks_Mobile, T1.PhoneBooks_Fax, T1.PhoneBooks_Email, T1.PhoneBooks_Address, T1.PhoneBooks_Discription)
    FROM (
        SELECT 
            T.ID AS PhoneBooks_ID, 
            T.Name AS PhoneBooks_Name, 
            T.Phone AS PhoneBooks_Phone, 
            T.Mobile AS PhoneBooks_Mobile, 
            T.Fax AS PhoneBooks_Fax, 
            T.Email AS PhoneBooks_Email, 
            T.Address AS PhoneBooks_Address, 
            T.Discription AS PhoneBooks_Discription, 
            True AS _from0
        FROM DataModelEntities.PhoneBooks AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.PhoneBooks"><![CDATA[
    SELECT VALUE -- Constructing PhoneBooks
        [RoboAccDBModel.PhoneBook](T1.PhoneBook_ID, T1.PhoneBook_Name, T1.PhoneBook_Phone, T1.PhoneBook_Mobile, T1.PhoneBook_Fax, T1.PhoneBook_Email, T1.PhoneBook_Address, T1.PhoneBook_Discription)
    FROM (
        SELECT 
            T.ID AS PhoneBook_ID, 
            T.Name AS PhoneBook_Name, 
            T.Phone AS PhoneBook_Phone, 
            T.Mobile AS PhoneBook_Mobile, 
            T.Fax AS PhoneBook_Fax, 
            T.Email AS PhoneBook_Email, 
            T.Address AS PhoneBook_Address, 
            T.Discription AS PhoneBook_Discription, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.PhoneBooks AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.ProductProperties"><![CDATA[
    SELECT VALUE -- Constructing ProductProperties
        [RoboAccDBModel.Store.ProductProperties](T1.ProductProperties_ProductRef, T1.ProductProperties_Name, T1.ProductProperties_Type, T1.ProductProperties_ValueStr, T1.ProductProperties_ValueInt)
    FROM (
        SELECT 
            T.ProductRef AS ProductProperties_ProductRef, 
            T.Name AS ProductProperties_Name, 
            T.Type AS ProductProperties_Type, 
            T.ValueStr AS ProductProperties_ValueStr, 
            T.ValueInt AS ProductProperties_ValueInt, 
            True AS _from0
        FROM DataModelEntities.ProductProperties AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.ProductProperties"><![CDATA[
    SELECT VALUE -- Constructing ProductProperties
        [RoboAccDBModel.ProductProperty](T1.ProductProperty_ProductRef, T1.ProductProperty_Name, T1.ProductProperty_Type, T1.ProductProperty_ValueStr, T1.ProductProperty_ValueInt)
    FROM (
        SELECT 
            T.ProductRef AS ProductProperty_ProductRef, 
            T.Name AS ProductProperty_Name, 
            T.Type AS ProductProperty_Type, 
            T.ValueStr AS ProductProperty_ValueStr, 
            T.ValueInt AS ProductProperty_ValueInt, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.ProductProperties AS T
    ) AS T1]]></view>
    <view extent="RoboAccDBModelStoreContainer.Units"><![CDATA[
    SELECT VALUE -- Constructing Units
        [RoboAccDBModel.Store.Units](T1.Units_ID, T1.Units_Ratio, T1.Units_Name, T1.Units_Description, T1.Units_MoadianUnitName)
    FROM (
        SELECT 
            T.ID AS Units_ID, 
            T.Ratio AS Units_Ratio, 
            T.Name AS Units_Name, 
            T.Description AS Units_Description, 
            T.MoadianUnitName AS Units_MoadianUnitName, 
            True AS _from0
        FROM DataModelEntities.Units AS T
    ) AS T1]]></view>
    <view extent="DataModelEntities.Units"><![CDATA[
    SELECT VALUE -- Constructing Units
        [RoboAccDBModel.Unit](T1.Unit_ID, T1.Unit_Ratio, T1.Unit_Name, T1.Unit_Description, T1.Unit_MoadianUnitName)
    FROM (
        SELECT 
            T.ID AS Unit_ID, 
            T.Ratio AS Unit_Ratio, 
            T.Name AS Unit_Name, 
            T.Description AS Unit_Description, 
            T.MoadianUnitName AS Unit_MoadianUnitName, 
            True AS _from0
        FROM RoboAccDBModelStoreContainer.Units AS T
    ) AS T1]]></view>
  </mapping-views>
</views>